This week's book giveaways are in the AI and JavaScript forums.
We're giving away four copies each of GANs in Action and WebAssembly in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

checkbox validation

 
Ranch Hand
Posts: 126
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.




 
author & internet detective
Posts: 39789
797
Eclipse IDE VI Editor Java
  • 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: 126
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: 126
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
Posts: 39789
797
Eclipse IDE VI Editor Java
  • 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: 126
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
 
Eliminate 95% of the weeds in your lawn by mowing 3 inches or higher. Then plant tiny ads:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!