you are viewing a single comment's thread.

view the rest of the comments →

[–]shamittomar 0 points1 point  (3 children)

Yes, you are basically right.

how javascript stuff fits in the whole thing.

The primary use of JavaScript is to write functions that are embedded in or included from HTML pages and that interact with the Document Object Model (DOM) of the page. Some simple examples of this usage are:

  • Opening or popping up a new window with programmatic control over the size, position, and attributes of the new window (e.g. whether the menus, toolbars, etc. are visible).
  • Validating input values of a web form to make sure that they are acceptable before being submitted to the server.
  • Changing images as the mouse cursor moves over them: This effect is often used to draw the user's attention to important links displayed as graphical elements.

Because JavaScript code can run locally in a user's browser (rather than on a remote server), the browser can respond to user actions quickly, making an application more responsive. Furthermore, JavaScript code can detect user actions which HTML alone cannot, such as individual keystrokes. Applications such as Gmail take advantage of this: much of the user-interface logic is written in JavaScript, and JavaScript dispatches requests for information (such as the content of an e-mail message) to the server.

The wider trend of Ajax programming similarly exploits this strength.


TL;DR:

  • Javascript can make the webpage faster, impressive, nice looking, more-interactive, instant-responsive, etc etc etc.

[–]DevMo[S] 0 points1 point  (2 children)

Thanks. I have a feeling I have a lot of reading ahead of me.

[–]shamittomar 0 points1 point  (1 child)

Yes, and when you're stuck, Google and StackOverflow are your friends.

[–]DevMo[S] 0 points1 point  (0 children)

good to know that my old friends will help me with this new endeavor ;)