Questions | Login

Top / Javascript

Are client side scripting languages useless? Internet explorer blocks and asks before letting javasc

demo 20 Dec 2008 01:25pm
My browser blocks even the following code:
<html><body><script type="text/javascript">
document.write(Date());
</script></body></html>

Should I just forget client side scripting exists and learn server side scripting?

Answers

demo 20 Dec 2008 01:33pm
IE blocks such things if the code is held locally on your PC. But if you were to upload it to a web server, IE won't block it.

Anyway, client-side scripting and server-side are 2 totally different things, used for different purposes. The one you learn should be based on what you want to do, not on what gets blocked by your browser. Read up about javascript and PHP on wikipedia to understand the differences.
demo 20 Dec 2008 01:37pm
Internet Options > Advanced > Security > Allow active content to run in files on My Computer
demo 20 Dec 2008 01:39pm
You can't do client-side things on the server, which is why there are both client-side and server-side languages. (Not arguing with the above 2 answers - they're both correct.)

Related

Submit Answer

You must be logged in to post an answer. Please Login or Register.

Powered by phpMyAnswers.