Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do I have to use JavaScript?

When does it become unavoidable and when would you want to choose JavaScript over server side when you have a choice?

like image 272
zsharp Avatar asked Jan 23 '09 22:01

zsharp


2 Answers

When you need to change something on your page without reloading it.

like image 193
Quassnoi Avatar answered Oct 06 '22 01:10

Quassnoi


Designer perspective:

  • When you want to give more interactivity to your web page
  • When you want to load stuff without reloading (i.e.: ajax for example)

When you shouldn't use:

  • When You don't want to spend 1000 hours in pointless tries to disable the back arrow of your browser :)
like image 23
fmsf Avatar answered Oct 06 '22 01:10

fmsf