Re: [WSG] JS Percentages?

2004-05-17 Thread YoYoEtc
Thank you.  This is a very helpful answer.
At 12:08 AM 5/10/2004, Ryan Christie wrote:
YoYoEtc wrote:
And if some users do indeed disable it, what sort of code do you put it 
as an alternative to get the site to do what you want it to do?
Server-side languages such as PHP or ASP. JS is a client language because 
it's dependant on a user's browser to supply the processing power for 
whatever facet, most commonly the ability to process JavaScript or X/HTML. 
Some may not understand the nature of a server-side, so here is an explanation.

Say you want to output the result from a calculation. The calculation 
could be, for instance, adding two and two together.

If it is written in JavaScript, the page will be sent out containing the 
yet-to-be-run JavaScript code asking the user's browser to call up its JS 
powers, process the code, and display the answer "4".

If it is written in PHP, when the browser makes a call to the server to 
pick up a copy of your web page, the web server your files reside on will 
take the page and process it before sending out any data to the user's 
browser. After being computed, the page will be sent out to the user with 
the answer in place.

If you open up a page that has been processed using PHP or ASP, you will 
not see any indications that a script was previously running. You will 
simply see, for example, a paragrpah containing the number 4 below a 
previously unsolved equation.

Due to taking the processing responsibility off your user's browser and 
placing it on the server, universal computation is ensured since patrons 
are fed the end results in HTML.

PS thanks Mario for the statistics
-Ryan
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*

-
Tina
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
* 



Re: [WSG] JS Percentages?

2004-05-11 Thread JonathanC

Return Receipt


Your document:
Re: [WSG] JS Percentages?


was received by:
Jonathan Cooper/ARTGAL-NSW/AU


at:
11/05/2004 10:12:49 PM



*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
* 



Re: [WSG] JS Percentages?

2004-05-10 Thread Mordechai Peller
YoYoEtc wrote:

And if some users do indeed disable it, what sort of code do you put 
it as an alternative to get the site to do what you want it to do?
As a rule of thumb, never trust anything to JavaScript except in the 
following cases:

1) You have control of the environment (intranet, sever side, admin 
functions, etc.),

2) Page, while missing behaviors, is still 100% functional (unneeded 
effects, redundant validation, etc.),

3) Behaviors are needed (if js is disabled user is out of luck),

4) You don't care (behaviors could be avoided, but you don't care).
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
* 



Re: [WSG] JS Percentages?

2004-05-09 Thread Ryan Christie
YoYoEtc wrote:

And if some users do indeed disable it, what sort of code do you put 
it as an alternative to get the site to do what you want it to do?
Server-side languages such as PHP or ASP. JS is a client language 
because it's dependant on a user's browser to supply the processing 
power for whatever facet, most commonly the ability to process 
JavaScript or X/HTML. Some may not understand the nature of a 
server-side, so here is an explanation.

Say you want to output the result from a calculation. The calculation 
could be, for instance, adding two and two together.

If it is written in JavaScript, the page will be sent out containing the 
yet-to-be-run JavaScript code asking the user's browser to call up its 
JS powers, process the code, and display the answer "4".

If it is written in PHP, when the browser makes a call to the server to 
pick up a copy of your web page, the web server your files reside on 
will take the page and process it before sending out any data to the 
user's browser. After being computed, the page will be sent out to the 
user with the answer in place.

If you open up a page that has been processed using PHP or ASP, you will 
not see any indications that a script was previously running. You will 
simply see, for example, a paragrpah containing the number 4 below a 
previously unsolved equation.

Due to taking the processing responsibility off your user's browser and 
placing it on the server, universal computation is ensured since patrons 
are fed the end results in HTML.

PS thanks Mario for the statistics

-Ryan
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
* 



Re: [WSG] JS Percentages?

2004-05-09 Thread mario
Please see the following:
http://www.w3schools.com/browsers/browsers_stats.asp?


> I wouldn't trust JS as far as I could throw it (can you throw code?) ...
>  but is there a statistic on how many users actually disable it in their
>  browsers? Is it possible to sniff that out, and if so, how many users
> per group are we talking about?
>
> -Ryan
> *
> The discussion list for http://webstandardsgroup.org/
> See http://webstandardsgroup.org/mail/guidelines.cfm
> for some hints on posting to the list & getting help
> *



*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
* 



Re: [WSG] JS Percentages?

2004-05-09 Thread YoYoEtc
And if some users do indeed disable it, what sort of code do you put it as 
an alternative to get the site to do what you want it to do?

At 11:23 PM 5/9/2004, Ryan Christie wrote:
I wouldn't trust JS as far as I could throw it (can you throw code?) ... 
but is there a statistic on how many users actually disable it in their 
browsers? Is it possible to sniff that out, and if so, how many users per 
group are we talking about?


-
Tina
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
* 



[WSG] JS Percentages?

2004-05-09 Thread Ryan Christie
I wouldn't trust JS as far as I could throw it (can you throw code?) ... 
but is there a statistic on how many users actually disable it in their 
browsers? Is it possible to sniff that out, and if so, how many users 
per group are we talking about?

-Ryan
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*