Click to See Complete Forum and Search --> : Site is dependant on Javascript
heavenly_blue
07-28-2004, 03:10 PM
The site I'm working on has several pages that are dependant on javascript to work properly. It's almost all dealing with signing up for a subscription and calculating prices. The site CAN be navigated without displaying images and disabled javascript, but the form validation, and price calculations don't work. Is it a big problem that this part of my site depends on javascript? should i just display a message saying "you must have javascript enabled to view this page", or find a way not to use it for these things (which i don't know how right now)?
Mellowz
07-28-2004, 03:26 PM
Can you show me the page that has the errors, please?
heavenly_blue
07-28-2004, 03:36 PM
There are no errors, the problem is that some pages need javascript to work. If a user has Javascript disabled, the pages won't work properly. You can sign up for a fake subscription right now here (http://buildingboom.com/beta/subscribe.asp).
I was wondering if I should redirect people to a different page if Javascript is disabled, or try to use other methods to accomplish what I need the site to do.
Charles
07-28-2004, 03:42 PM
Strictly speaking, validation should happen both server and client side. But the server side validation, for those who do not use JavaScript, might be you sending them a message by e-mail.
Don't post any messages about JavaScript being turned off. We know that. Rather keep yourself from shame by using JavaScript to write any part of the page that will not work without JavaScript. Something like: document.write ('<label>Total<input id="total" type="text"></label>')
Mellowz
07-28-2004, 03:43 PM
Sorry about that...anyways, yes you should have it redirect to a different page but before it does that, there should be a message that tells them why they're being redirected. Also, maybe using a different language on the redirected page. I mean, check out some of the big sites they use PHP + Javascript. Something in the PHP Code that does that, I think.
heavenly_blue
07-28-2004, 03:49 PM
my form validation is done client side with javascript and serverside with asp. the only other problem i have is on the second subscription page, the price is calculated, displayed, and stored in a form variable using javascript. really that's the only big problem. how the price is determined is kind of complicated, so the price is displayed and updated everytime the user makes a different selection. if you fill out the form in the link i gave above, it will take you to the page i'm talking about. dont worry, as long as you dont complete the subscription, nothing gets put in a database, and this is just a test site for now.
Charles
07-28-2004, 04:11 PM
You'll have to find a way to provide a server side version of the dynamic pricing. You have a duty to those who cannot use JavaScript.