IntelliJ Java IDE
The moose likes HTML, CSS and JavaScript and the fly likes If javascript disabled. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "If javascript disabled." Watch "If javascript disabled." New topic
Author

If javascript disabled.

Sanjay Saxena
Ranch Hand

Joined: Dec 12, 2001
Posts: 81
I need your help.
I have a requirement wherein I have to call a javascript function for the href on my screen because I have to append the url with an indicator
and on the basis of the value of indicator, next page will be rendered. I did so. It works fine.
Now if javascript is disabled then it doesn't work as javascript function will not be called. For that I'm keeping a hidden field with original value jsDiabled = "FALSE" and setting its value to jsDisabled="TRUE" in <NOSCRIPT> tags, and hence this value is passed to all the pages (thru a common include) and I have given a condition that if jsDisabled is true don't call javascript, they rather call original url (without appending the indicator as I said before).
This works fine if I'm submitting the page as the hidden jsDisabled is available as part of request, but.. if I have links then it fails.
So, can anybody help me as how should I handle it. I'm not supposed to use session.
Thanks in advance.
Sanjay
 
 
subject: If javascript disabled.
 
Threads others viewed
passing hidden field value to backing bean
window.setInterval messing up jQuery button handler
executing a javascript function from a servlet
Disabling form submission in IE and Firefox
Struts <html:text ... issue.
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture