Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

checkbox validation  RSS feed

 
Daniel Martos
Ranch Hand
Posts: 116
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to validate my checkboxes, but I can't seem to be able to get it.  Can someone take a look and maybe see what I'm missing?  The first set of code is my working code, the second is the code that I place in the placeOrder() function that longer longer lets it work.




 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 36633
475
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What specifically doesn't work? Do you have an error in the JavaScript console?
 
Daniel Martos
Ranch Hand
Posts: 116
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne Boyarsky wrote:What specifically doesn't work? Do you have an error in the JavaScript console?


I'm not real handy with the JavaScript console.  I'm very new to this.....second semester.  Before I enter the validation code, my submit button works (validates everything and runs properly), when I enter the second code I listed....it no longer works.  I was hoping that I was just missing something simple.
 
Daniel Martos
Ranch Hand
Posts: 116
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this what you mean?

OpenGL compositor Initialized Succesfully.
Version: 2.1 ATI-1.32.25
Vendor: ATI Technologies Inc.
Renderer: AMD Radeon HD 6750M OpenGL Engine
FBO Texture Target: TEXTURE_2D
Strict-Transport-Security: The site specified a header that could not be parsed successfully.[Learn More]  service.svc
Strict-Transport-Security: The site specified a header that could not be parsed successfully.[Learn More]  service.svc
Strict-Transport-Security: The site specified a header that could not be parsed successfully.[Learn More]  service.svc
Strict-Transport-Security: The site specified a header that could not be parsed successfully.[Learn More]  service.svc
Strict-Transport-Security: The site specified a header that could not be parsed successfully.[Learn More]  ev.owa2
Strict-Transport-Security: The site specified a header that could not be parsed successfully.[Learn More]  service.svc
Strict-Transport-Security: The site specified a header that could not be parsed successfully.[Learn More]  service.svc
Strict-Transport-Security: The site specified a header that could not be parsed successfully.[Learn More]  service.svc
Strict-Transport-Security: The site specified a header that could not be parsed successfully.[Learn More]  service.svc
Strict-Transport-Security: The site specified a header that could not be parsed successfully.[Learn More]  service.svc
Strict-Transport-Security: The site specified a header that could not be parsed successfully.[Learn More]  service.svc
Strict-Transport-Security: The site specified a header that could not be parsed successfully.[Learn More]  service.svc
Strict-Transport-Security: The site specified a header that could not be parsed successfully.[Learn More]  service.svc
XML Parsing Error: no root element found
Location: https://browser.pipe.aria.microsoft.com/Collector/3.0/?qsp=true&content-type=application%2Fbond-compact-binary&client-id=NO_AUTH&sdk-version=ACT-Web-JS-2.7.1&x-apikey=e4e35bc3aaa64fadab77685ac00a1d7e-b5d8a4e6-05cb-4203-88f4-bf4cf67029a9-7427
Line Number 1, Column 1:  3.0:1:1
Strict-Transport-Security: The site specified a header that could not be parsed successfully.[Learn More]  service.svc
Strict-Transport-Security: The site specified a header that could not be parsed successfully.[Learn More]  service.svc
XML Parsing Error: no root element found
Location: https://webpooldm21a06.infra.lync.com/ucwa/oauth/v1/applications/112896991134/me/makeMeAvailable
Line Number 1, Column 1:  makeMeAvailable:1:1
Strict-Transport-Security: The site specified a header that could not be parsed successfully.[Learn More]  service.svc
XML Parsing Error: no root element found
Location: https://webpooldm21a06.infra.lync.com/ucwa/oauth/v1/applications/112896991134/people/contactsAndGroupsSubscription/startOrRefresh?duration=30
Line Number 1, Column 1:  startOrRefresh:1:1
Strict-Transport-Security: The site specified a header that could not be parsed successfully.[Learn More]  service.svc
XML Parsing Error: no root element found
Location: https://browser.pipe.aria.microsoft.com/Collector/3.0/?qsp=true&content-type=application%2Fbond-compact-binary&client-id=NO_AUTH&sdk-version=ACT-Web-JS-2.7.1&x-apikey=e4e35bc3aaa64fadab77685ac00a1d7e-b5d8a4e6-05cb-4203-88f4-bf4cf67029a9-7427
Line Number 1, Column 1:  3.0:1:1
XML Parsing Error: no root element found
Location: https://browser.pipe.aria.microsoft.com/Collector/3.0/?qsp=true&content-type=application%2Fbond-compact-binary&client-id=NO_AUTH&sdk-version=ACT-Web-JS-2.7.1&x-apikey=624ad1fa51fe4745ac8e7201e91ca2c6-cb135e7d-6be3-4723-9f8f-3c23fbcc0ac7-6875
Line Number 1, Column 1:  3.0:1:1
XML Parsing Error: no root element found
Location: https://browser.pipe.aria.microsoft.com/Collector/3.0/?qsp=true&content-type=application%2Fbond-compact-binary&client-id=NO_AUTH&sdk-version=ACT-Web-JS-2.7.1&x-apikey=e4e35bc3aaa64fadab77685ac00a1d7e-b5d8a4e6-05cb-4203-88f4-bf4cf67029a9-7427
Line Number 1, Column 1:  3.0:1:1
XML Parsing Error: no root element found
Location: https://webpooldm21a06.infra.lync.com/ucwa/oauth/v1/applications/112896991134/communication
Line Number 1, Column 1:  communication:1:1
Strict-Transport-Security: The site specified a header that could not be parsed successfully.[Learn More]  service.svc
Strict-Transport-Security: The site specified a header that could not be parsed successfully.[Learn More]  service.svc
Strict-Transport-Security: The site specified a header that could not be parsed successfully.[Learn More]  service.svc
Strict-Transport-Security: The site specified a header that could not be parsed successfully.[Learn More]  service.svc
Strict-Transport-Security: The site specified a header that could not be parsed successfully.[Learn More]  service.svc
A promise chain failed to handle a rejection. Did you forget to '.catch', or did you forget to 'return'?
See https://developer.mozilla.org/Mozilla/JavaScript_code_modules/Promise.jsm/Promise

Date: Mon Mar 06 2017 21:56:11 GMT-0500 (EST)
Full Message: Error: page-thumbnail:error
Full Stack: observe@resource://gre/modules/BackgroundPageThumbs.jsm:116:22
BackgroundPageThumbs._onCaptureOrTimeout@resource://gre/modules/BackgroundPageThumbs.jsm:305:7
Capture.prototype._done/done@resource://gre/modules/BackgroundPageThumbs.jsm:451:7
Capture.prototype._done@resource://gre/modules/BackgroundPageThumbs.jsm:471:7
Capture.prototype.notify@resource://gre/modules/BackgroundPageThumbs.jsm:428:5
  BackgroundPageThumbs.jsm:116
Strict-Transport-Security: The site specified a header that could not be parsed successfully.[Learn More] ev.owa2
Strict-Transport-Security: The site specified a header that could not be parsed successfully.[Learn More]  ev.owa2
Strict-Transport-Security: The site specified a header that could not be parsed successfully.[Learn More]  service.svc
SyntaxError: missing } after function body  CC_Assignment5-3.html:171:8
ReferenceError: calcTotal is not defined[Learn More]  CC_Assignment5-3.html:1:1
OpenGL compositor Initialized Succesfully.
Version: 2.1 ATI-1.32.25
Vendor: ATI Technologies Inc.
Renderer: AMD Radeon HD 6750M OpenGL Engine
FBO Texture Target: TEXTURE_2D
Strict-Transport-Security: The site specified a header that could not be parsed successfully.[Learn More]  ev.owa2

       
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 36633
475
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The first step is to check the JavaScript console in the browser. This will tell you where the error lies - is it syntax or a not set object for example.

If you don't know how to do this, reply with what browser you are using.
 
Daniel Martos
Ranch Hand
Posts: 116
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne Boyarsky wrote:The first step is to check the JavaScript console in the browser. This will tell you where the error lies - is it syntax or a not set object for example.

If you don't know how to do this, reply with what browser you are using.


Firefox
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!