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)
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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.