Degrading Javascript Calls

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Degrading Javascript Calls

Post by onion2k »

I'm working on my first AJAX/JS/PHP application and I'm trying to work out how exactly you write AJAX code in a way that'll degrade nicely if the user has JS turned off. I'm using Script.aculo.us if that makes a difference. How do I make both buttons and text links that normally call a JS function degrade to a normal GET request if JS isn't available? Preferably without rewriting huge amounts of code.. I don't much like the idea of building a complete <noscript> version of the app.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

Do not degrade if js isn't available, upgrade when it is on.
Design with javascript turned off, then enhance your app with js.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

There should be a bunch of links scattered all over the place about this.
Post Reply