Privileges at the Server

Oh yes—I neglected to mention the main attraction of JavaScript. It doesn't require special access to the Web server. JavaScript is just like any other text as far as the server is concerned; the browser does all the interpreting. If what you have is an account with an Internet service provider that allows you only to store pages, the client side is the only side you can use dynamically. But whenever somebody's Web browser neglects to provide the facilities and permission for your JavaScript code to run, you (or they, depending on your point of view) are just out of luck.

So it's necessary that we assume one more thing for the rest of today's lesson: You run your own Web server, or you have sufficient privilege on somebody ...

Get Sams Teach Yourself Ruby in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.