Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - Javascript: why...? why...?

 
Thread Tools Search this Thread
Old 11-06-2004, 05:04 PM   #1
Default Javascript: why...? why...?


Javascript is a language used on Web pages all over the Net.
I find Javascript usefull but... why most of the modern browsers allow its
users to disable it?
For what purpose was this language invented?
What is (are) the alternative(s)?

--
Pascal
[Remove NOSPAM from personnal e-mail]



---
Ce courriel est exempt de virus.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.783 / Virus Database: 529 - Release Date: 2004-10-27




Pascal Bouchard
  Reply With Quote
Old 11-06-2004, 05:09 PM   #2
W˙rm
 
Posts: n/a
Default Re: Javascript: why...? why...?


"Pascal Bouchard" <> wrote in message
news:yu7jd.75427$...
> Javascript is a language used on Web pages all over the Net.
> I find Javascript usefull but... why most of the modern browsers allow its
> users to disable it?


People do not like how javascript is abused to popup/under all kinda things,
resize windows and what not. Maybe because of that?


  Reply With Quote
Old 11-06-2004, 07:05 PM   #3
Karl Core
 
Posts: n/a
Default Re: Javascript: why...? why...?


"Pascal Bouchard" <> wrote in message
news:yu7jd.75427$...
> Javascript is a language used on Web pages all over the Net.
> I find Javascript usefull but... why most of the modern browsers allow its
> users to disable it?
> For what purpose was this language invented?
> What is (are) the alternative(s)?
>


There are sooooooo many ways that websites can use JavaScript to abuse
visitors.
The book "Building Really Annoying Websites"
(http://www.amazon.com/exec/obidos/tg...43861?v=glance)
Focuses on ways you can really **** people off.
A good 90%+ of the book focuses on JavaScript. That should answer your
first question rather well. People just abuse it too much.

JavaScript does have its uses. There are a lot of ways that you can provide
a high level of interactivity for your users with it.
I can't think of anything (useful) that JavaScript can do that can't be done
server-side such as with PHP, ASP, JSP, Perl, etc.

-Karl


  Reply With Quote
Old 11-06-2004, 07:31 PM   #4
Joel Shepherd
 
Posts: n/a
Default Re: Javascript: why...? why...?

"Karl Core" <> wrote:

> I can't think of anything (useful) that JavaScript can do that can't be done
> server-side such as with PHP, ASP, JSP, Perl, etc.


True (I think, after three seconds consideration), but often the same
action performed client-side by JS seems faster (to the user) than
performing it server-side. Form validation is a good example: while one
would always want final validation to occur server-side, performing it
on the client-side may save the user from having to wait for a full page
request and load to discover they've made a minor typo or skipped a
field.

--
Joel.
  Reply With Quote
Old 11-06-2004, 09:04 PM   #5
Karl Core
 
Posts: n/a
Default Re: Javascript: why...? why...?


"Joel Shepherd" <> wrote in message
news:joelshep-...
> "Karl Core" <> wrote:
>
>> I can't think of anything (useful) that JavaScript can do that can't be
>> done
>> server-side such as with PHP, ASP, JSP, Perl, etc.

>
> True (I think, after three seconds consideration), but often the same
> action performed client-side by JS seems faster (to the user) than
> performing it server-side. Form validation is a good example: while one
> would always want final validation to occur server-side, performing it
> on the client-side may save the user from having to wait for a full page
> request and load to discover they've made a minor typo or skipped a
> field.


You're right. This is especially true for (very) high traffic websites.
You definitely don't want to burden the server with repeated requests just
to validate a form.
Still, in the case of form validation, it makes sense to do both client-side
and server side validation

-Karl


  Reply With Quote
Old 11-06-2004, 09:17 PM   #6
brucie
 
Posts: n/a
Default Re: Javascript: why...? why...?

In alt.html Pascal Bouchard said:

> Javascript is a language used on Web pages all over the Net.


and most of the time it shouldn't be. for example, needing JS so a
submit button works. people just don't think.

> I find Javascript usefull


the technology isn't the problem, its giggly technology. as usual its
what people do with the giggly technology that is the problem

> but... why most of the modern browsers allow its users to disable it?


or partially disable it. you're rarely wrong if you automatically assume
sites are going to do something annoying to you with it.

> For what purpose was this language invented?


in hindsight - to annoy

> What is (are) the alternative(s)?


use JS to add optional enhancements to a site, don't make it a
requirement for the site to work. easy peasy.

--
the facts and opinions expressed by brucies
l i t t l e v o i c e s
are not necessarily the same as those held by brucie.
  Reply With Quote
Old 11-06-2004, 09:27 PM   #7
brucie
 
Posts: n/a
Default Re: Javascript: why...? why...?

In alt.html Joel Shepherd said:

> True (I think, after three seconds consideration), but often the same
> action performed client-side by JS seems faster (to the user) than
> performing it server-side. Form validation is a good example: while one
> would always want final validation to occur server-side, performing it
> on the client-side may save the user from having to wait for a full page
> request and load to discover they've made a minor typo or skipped a
> field.


Javascript form validation ˇV doing it right
http://www.xs4all.nl/~sbpoley/webmatters/formval.html

--
the facts and opinions expressed by brucies
l i t t l e v o i c e s
are not necessarily the same as those held by brucie.
  Reply With Quote
Old 11-06-2004, 10:01 PM   #8
Pascal Bouchard
 
Posts: n/a
Default Re: Javascript: why...? why...?

Dans un message précédent, brucie <****@usenetshit.info> a écrit:

> use JS to add optional enhancements to a site, don't make it a
> requirement for the site to work. easy peasy.


Absolutely right!


---
Ce courriel est exempt de virus.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.783 / Virus Database: 529 - Release Date: 2004-10-27


  Reply With Quote
Old 11-07-2004, 04:46 AM   #9
WebMaster
 
Posts: n/a
Default Re: Javascript: why...? why...?

most people don't bother (or even don't know) to disable it...

This group IS a minority (yes, I know some people do not like to be reminded
of that)

Rudy

"W˙rm" <> wrote in message
news:cmj0hj$sl2$...
>
> "Pascal Bouchard" <> wrote in message
> news:yu7jd.75427$...
> > Javascript is a language used on Web pages all over the Net.
> > I find Javascript usefull but... why most of the modern browsers allow

its
> > users to disable it?

>
> People do not like how javascript is abused to popup/under all kinda

things,
> resize windows and what not. Maybe because of that?
>
>



  Reply With Quote
Old 11-07-2004, 05:12 AM   #10
Joel Shepherd
 
Posts: n/a
Default Re: Javascript: why...? why...?

"WebMaster" <> wrote:

> most people don't bother (or even don't know) to disable it...
>
> This group IS a minority (yes, I know some people do not like to be reminded
> of that)


It might be a minority, but some of its members are very important ones.
Starting with search engine bots.

--
Joel.
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump