First page Back Continue Last page Image
- Not Reaching The Control Function ??
- Try some of these simple tricks:
- 1) Insert an alert message near the control function to see if the
- program is processing that far
- function submitIt(form) {
- alert("You have made it to this control")
- // make sure they enter a color
- colorChoice = form.color.selectedIndex
- if (form.color.options[colorChoice].value == "") {
- alert("You must pick a color")
- return false
- }
- // make sure they enter in a number of doors
- doorOption = -1
- for (i=0; i<form.DoorCt.length; i++) {
- if (form.DoorCt[i].checked)
- doorOption = i
- }
- The alert will appear as a box
- in the browser if it has
- been able to process to this
- point. If the message does
- not appear, you know
- that there is a problem
- before it has reached this
- part of your code. Check the
- function call in your HTML code.
- Then check the "{ }" brackets to
- make sure you have not missed one.