![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
They say not to use JavaScript for important things, but doesn't that mean relegating JavaScript usage to frivolous effects? |
#3
| |||
| |||
|
|
[...] On the one hand, good practice dictates that a site degrade gracefully where JavaScript is concerned...but on the other, that means that JavaScript will be used only for non-critical effects. |
|
And speaking of effects, isn't that what JavaScript is all about -- behavior, which means actions that produce certain effects?? |
#4
| |||
| |||
|
|
Prisoner at War escribió: They say not to use JavaScript for important things, but doesn't that mean relegating JavaScript usage to frivolous effects? I'd say the advice is: don't risk breaking basic functionality by using superfluous JavaScript. Example: I'm tired of sites that replace regular links with stuff like a href="javascript:makeLink('/pages/products.php?id=666')"></a> and manage to break: - Search engines - Open link in new tab - Save target as - Copy link location - Bookmark link ... while providing no new functionality at all. Not to mention forms you can't submit because they have no submit button or URL and there's a JavaScript error on the page. An example of such a problem is <www.instantssl.com>. Using Seamonkey |
#5
| |||
| |||
|
| Exactly. At least if you care for your users (including screenreaders, braille keyboards, firewalled browsers with filtered JS, and all those people who intentionally disable JS for security reasons) you'll want to use JS (if at all) only to _enhance_ the usuablity of your page(s). |
|
Sure. But that's an "addon" not a replacement for something that works very well w/o JS (like links or forms). And a nice behaviour (e.g. for supporting form input and validating it) is definitely no ersatz (replacement) for server side validation. Only too often the behaviour is more like infantilizing than helpful. |
|
-- Matthias /"\ \ / ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL X - AGAINST Microsoft ATTACHMENTS / \ |
#6
| |||||
| |||||
|
|
On May 15, 5:36 am, Matthias Watermann <li... (AT) mwat (DOT) de> wrote: Exactly. At least if you care for your users (including screenreaders, braille keyboards, firewalled browsers with filtered JS, and all those people who intentionally disable JS for security reasons) you'll want to use JS (if at all) only to _enhance_ the usuablity of your page(s). So would this be an example of "enhanced usability"...a site that sells bras...it can have a good old-fashioned size-chart, and it can provide a JavaScript bra-size calculator for those whose JavaScript is enabled...is that it? |
|
Is that what the role of JavaScript is: a fancier way of doing something that's already possible and perfectly fine?? |
|
Seems to me that there is a necessary tension between the "promise" of a technology like JavaScript and the dictum to, practically speaking, not use it too much too extensively.... |
|
Sure. But that's an "addon" not a replacement for something that works very well w/o JS (like links or forms). And a nice behaviour (e.g. for supporting form input and validating it) is definitely no ersatz (replacement) for server side validation. Only too often the behaviour is more like infantilizing than helpful. Infantilizing?? I wonder what you mean. |
|
I'm not sure that I've ever come across a site that used JavaScript to replace good old-fashioned HTML links and forms.... |
#7
| |||
| |||
|
|
You can always _add_ any functionality you like using client-side scripting. But you should never expect that it's executed by everyone. |
#8
| |||||
| |||||
|
|
On May 18, 4:26 pm, Matthias Watermann <li... (AT) mwat (DOT) de> wrote: You can always _add_ any functionality you like using client-side scripting. But you should never expect that it's executed by everyone. Such broad generalization is way too broad for being correct. On fading out Web 1.0 services it is indeed still an option to have Javascript disabled or not. |
|
For Web 2.0 generation of services Javascript is an assumed integral part of the client - just like its ability to render HTML code. |
|
Respectively the only fallback for "the boys & girls" who decided for some reason to experiment with their browser settings - such fallback is a nice message suggesting how to bring the spoiled settings back to normal. |
|
Just a few samples of well known Web 2.0 services that came first to my mind and visited with Javascript disabled: |
|
[...] It is the question of the type of service one wants to implement. |
#9
| |||
| |||
|
|
You can always _add_ any functionality you like using client-side scripting. But you should never expect that it's executed by everyone. Such broad generalization is way too broad for being correct. On fading out Web 1.0 services it is indeed still an option to have Javascript disabled or not. There is no such thing as "Web 1.0" - unless you're just talking marketing gibberish. And as long as there are still browsers around that are unsafe by design and therefor target of various script based attacks the option to safely surf with javascript disabled is simply indispensable. For Web 2.0 generation of services Javascript is an assumed integral part of the client - just like its ability to render HTML code. "Assumed" by who? The socalled "Web 2.0" is nothing but a marketing word. A hype to allow for some smart guys make money. For the user's side it usually makes the things more dangerous, more expensive (in terms of bandwidth, processing time, memory usage). And the funny thing is, when all the gimmicks are run and all the fancy buttons are clicked, the data must get transfered to the server nevertheless. |
|
Respectively the only fallback for "the boys & girls" who decided for some reason to experiment with their browser settings - such fallback is a nice message suggesting how to bring the spoiled settings back to normal. Of course you're free to feel that way. I prefer to browse the web w/o any scripting enabled until I find a presentation that's interesting and the benefit of enabling scripting outweights the prossible problems. Then, and only then, _I_ decide to let the browser load/execute the javascript. And if FireBug or the ErrorConsole (depending on the browser I'm using at that time) pops up to complain about the code I switch the scripting off again. I emphasize that because it appears that quite a lot of web-page builders forget that it's not them but the readers who decide whether to use a graphical browser at all or to dis-/enable scripting or IFRAMEs or sound or ... |
|
Just a few samples of well known Web 2.0 services that came first to my mind and visited with Javascript disabled: http://www.geocities.com/schools_ring/tmp/facebook.png http://www.geocities.com/schools_ring/tmp/gmail.png http://www.geocities.com/schools_ring/tmp/google_docs.png http://www.geocities.com/schools_ring/tmp/youtube.png Thank you so much! Indeed wonderful examples for how to build barriers to keep potential users outside and annoyed. |
#10
| |||
| |||
|
|
Just a few samples of well known Web 2.0 services that came first to |

|
my mind and visited with Javascript disabled: http://www.geocities.com/schools_ring/tmp/facebook.png http://www.geocities.com/schools_ring/tmp/gmail.png http://www.geocities.com/schools_ring/tmp/google_docs.png http://www.geocities.com/schools_ring/tmp/youtube.png |
![]() |
| Thread Tools | |
| Display Modes | |
| |