Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

java form validation when java not enabled

Status
Not open for further replies.

jettbaker

Programmer
Jan 31, 2001
11
US
I have been looking for alternatives to receiving an error on CF form validation when a browser does not have Java enabled


 
?? why don't you use javascript or cfml to validate your forms ?????
 
Iza,
We do use Javascript and CFML for validation, For the javascript I use a Browser check to see if Java is enabled, if not we direct to another page.
But since the CF server writes the java script for cfform validation I was just curious if this has been a problem.
 
??? i guess you're mixing JAVA and JAVASCRIPT
those are two DIFFERENT languages

so if JAVA is disabled, JAVASCRIPT may NOT be disabled ... i mean, they are NOT related (well, javascript is a "sub" java - kind of java light)
 
I am not confusing the 2, Javascript can be disabeled in browsers, And if this option is checked then the CFM form validation errors out.

 
Please explain a little more Jeanette.

Are you saying that you're using client side javascript to validate a form, but you're worried that people without javascript will get errors?

"I was just curious if this has been a problem."

What do you mean by that?

Ill see if I can help once we are on the same page.
 
I was thinking we were on the wrong page also,

If one was to only use CFMl form validation.
which actually writes javscript then error validation does not work if java is disabled in the browser,
either the form errors or it submits with no validation check.

I have been using javascript with standard html forms, as validation so that I can also check for java- enabled.
along with checking on the submit and reloading the form.
 
Yes, I am concerned about java-script not being enabled.
 
You mention both "java" and "javascript"

Could you please explain what you mean by "check for java- enabled" ?

Why are you checking if java is enabled on the browser if your using javascript to validate the form? Are we confusing the usage of "java" and "javascript" or are you actually using client-side "javascript" in conjunction with some "java" applet you're loading either on the page or on the server?

Basically... is there any JAVA on your web site? If so, what does it have to do with your javascript? If no, are you merely trying to detect if javascript is enabled, and based on the check, direct the user to a different page?
 
to clarify,
I am only using Javascript in this page,
I do check the browser and re-direct based on java enabled or not. I have solved the errors I received with the CFFORm by not using the Cold fusion validation and just using javascript.

Where the question came from was if I were not using Java script at all , if I used only CFFORM and the CFML form validate options I would still need to write javascript to check the browser and redirect.
 

I do understand there is a difference between Java and Javascript.

The Mac versions of IE and Netscape have options to disable java and to disable javascript.

netscape allows a user to enable or "turn off" both java and javascript.

the last statistic I found (feb 2001) was that 21% do not have or have disabled javascript.

I have solved the problem I had originally, I just found it curious that since CFFORM validation uses javascript, there was no information on including a re-direct or alternative(for those not familiar with javascript)
 
Yes, you're very aware of the accessibility issues plagueing the web.

I can't suggest a better method than the one you've used instead of CFFORM. I never used CF form elements and its client side validation because I didn't trust that CF's javascript was doing everything I needed.

Good call on doing it yourself. Hey, when you're the only one to blame, atleast you know you can handle any problem that arises.
 
very true,
thank you Iza and strantheman it is always nice to muddle through with a bit of advice and insight from others
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top