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
*****************************************************


Reply via email to