Javascript validation
-
Hi, I have a simple validation of drop down list, making sure the user has selected either "yes" or "no". There are 3 of these dropdownlist, with values of "yes" and "no". Based on if yes is answered, user needs to fill in two text boxes. All this validation is performed using javascript. while this works fine when test, now that the site is live, having some issues, where in the user is able to submit the form without filling in the dropdownlist!! I am trying to debug this, except it is consistently working for me. Totally lost. Any ideas please???
-
Hi, I have a simple validation of drop down list, making sure the user has selected either "yes" or "no". There are 3 of these dropdownlist, with values of "yes" and "no". Based on if yes is answered, user needs to fill in two text boxes. All this validation is performed using javascript. while this works fine when test, now that the site is live, having some issues, where in the user is able to submit the form without filling in the dropdownlist!! I am trying to debug this, except it is consistently working for me. Totally lost. Any ideas please???
Need HTML codes as well as JS validation code to provide solution
-
Hi, I have a simple validation of drop down list, making sure the user has selected either "yes" or "no". There are 3 of these dropdownlist, with values of "yes" and "no". Based on if yes is answered, user needs to fill in two text boxes. All this validation is performed using javascript. while this works fine when test, now that the site is live, having some issues, where in the user is able to submit the form without filling in the dropdownlist!! I am trying to debug this, except it is consistently working for me. Totally lost. Any ideas please???
What happens if the user has Javascript disabled, by using something like NoScript or browser preferences?
-
What happens if the user has Javascript disabled, by using something like NoScript or browser preferences?
Good answer! 5+ Nowadays everybody seems to take javascript availability in a browser for granted. If base functionality of ones website does rely on javascript one has to make sure to check for it since, as you have already mentioned, the user might have disabled it. Cheers!
"With sufficient thrust, pigs fly just fine."
Ross Callon, The Twelve Networking Truths, RFC1925
-
What happens if the user has Javascript disabled, by using something like NoScript or browser preferences?
-
I have tried that option, dis-abled scripting on the browser. the web site is not funcational at all. it is just froze.
vanikanc wrote:
the web site is not funcational at all. it is just froze
That could depend on the browser being used. :)
Luc Pattyn [My Articles] Nil Volentibus Arduum
-
vanikanc wrote:
the web site is not funcational at all. it is just froze
That could depend on the browser being used. :)
Luc Pattyn [My Articles] Nil Volentibus Arduum
Is there a way to escape the execution of javascript? Using IE7.0 and having scripting enabled? Only thing new with this is this application is set up on a bran new server, which has https enabled. Do we need something set up on server for javascript to execute properly?
-
Hi, I have a simple validation of drop down list, making sure the user has selected either "yes" or "no". There are 3 of these dropdownlist, with values of "yes" and "no". Based on if yes is answered, user needs to fill in two text boxes. All this validation is performed using javascript. while this works fine when test, now that the site is live, having some issues, where in the user is able to submit the form without filling in the dropdownlist!! I am trying to debug this, except it is consistently working for me. Totally lost. Any ideas please???
The reason is you didnt use return statement. a simple example for your understanding.
function Validate()
{
if validation failed
return false;
else return true;
} -
I have tried that option, dis-abled scripting on the browser. the web site is not funcational at all. it is just froze.
hi, You can use both client as well as server side validation to perform your task.. First check user allowed javascript or not if yes then don't need to worry else you need to perform server side validation...........
Thanks & Regards Arya1685 “You are not only responsible for what you say, but also for what you do not say”