/    Sign up×
Community /Pin to ProfileBookmark

Site is dependant on Javascript

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)?

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@MellowzJul 28.2004 — Can you show me the page that has the errors, please?
Copy linkTweet thisAlerts:
@heavenly_blueauthorJul 28.2004 — 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 [URL=http://buildingboom.com/beta/subscribe.asp]here[/URL].

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.
Copy linkTweet thisAlerts:
@CharlesJul 28.2004 — 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: [font=monospace]document.write ('<label>Total<input id="total" type="text"></label>')[/font]
Copy linkTweet thisAlerts:
@MellowzJul 28.2004 — 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.
Copy linkTweet thisAlerts:
@heavenly_blueauthorJul 28.2004 — 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.
Copy linkTweet thisAlerts:
@CharlesJul 28.2004 — 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.
×

Success!

Help @heavenly_blue spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...