Click to See Complete Forum and Search --> : form not wrkg alert test
I hope this is the right forum. It is my first ever post so I dont know all the rules yet.
Here is my problem - I have an affiliate website that has a for where a customer can complete an application.
When the required info is entered and the "complete application" button is hit a message box pops up that says "test". After you hit ok nothing happens. I have went into source and found the following:
alert('test');
return false
I am posting because the affiliate support is ignoring me. Is this something I can fix by changing the code slightly
Ron
Nedals
09-30-2006, 03:00 PM
You should have posted in the Javascript forum. :)
Java and Javascript are NOT the same thing.
To resolve your problem, we will need more code
alert('test');
return false;
will indeed do nothing when you close the popup.
Perhaps 'return true;' will solve the problem
Thanks Nedal,
Re: Alert Test Code
I substituted true for false and this at least allowed me to "get through" after I hit OK in the test message box (by the way clicking on the yellow triangle with the explanation point did not identify the location of the error, nothing happened). Thanks, that positive step was welcome. However, the alert fuction is still a nuisance and the pop-up is likely to scare customers away. You had asked for more code to assist. Here it is:
function checkForm() {
alert('test');
return false;
var Form=document.LeadForm;
var returnValue=true;
returnValue = checkTextBox(Form.FName,'First Name',returnValue);
returnValue = checkTextBox(Form.LName,'Last Name',returnValue);
returnValue = checkTextBox(Form.Email,'E-mail Address',returnValue);
returnValue = checkTextBox(Form.Homephone,'Home Phone',returnValue);
returnValue = checkEmail(Form.Email,'E-mail Address',returnValue);
return returnValue;
}
</script>
RonT
Nedals
10-03-2006, 06:01 PM
In this case, the alert box is simply there for testing.
You can comment it out by adding the '//'
// alert('test');
// return false;
or you can simply delete those two lines.
What else is going to happen, I don't know. It depends on the code in the function TextBox() which will probably return true or false depending on the condition of the input(s).
...returnValue = checkTextBox(Form.FName,'First Name',returnValue);
agent_x91
10-10-2006, 08:18 AM
Someone move this to the javascript forum... RonT, please note the red sign in the forum title saying
(NOT JavaScript!)