JavaScript
  Home arrow JavaScript arrow Page 3 - Introduction to JavaScript
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
Google.com  
JAVASCRIPT

Introduction to JavaScript
By: Joe eitel
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 7
    2009-07-08


    Table of Contents:
  • Introduction to JavaScript
  • Relation to Java
  • Real-time Nature
  • Application

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Introduction to JavaScript - Real-time Nature
    ( Page 3 of 4 )

    The major addition of JavaScript to a web page, as mentioned, is its real-time dynamic capabilities. JavaScript allows a developer to change the content that appears on a page without changing the page itself. If this does not mean much to you, then you can basically think of it as something like a drop-down menu or pop-up “window.”

    The real-time nature of JavaScript is what differentiates it from all other dynamic languages online. PHP, for instance, is a much more powerful language that JavaScript. However, (in general) in order for PHP to change content, a page must be refreshed.

    PHP is executed before the HTML of a page, and cannot change any content after the HTML has been loaded. This severely limits the application of PHP (and other languages like it) to creating applications that rely upon real-time content changes.

    If you are more technically inclined, then you probably already know about HTML and how it is code that drives the appearance of a web page. While PHP can change the code behind the HTML, it can only do it before the user sees it.

    JavaScript, on the other hand, is executed at the same time as HTML. This is what allows it to change content on the page after it has been loaded. Just as HTML is always present on the page, JavaScript is always ready to operate as long as the window is open.

    One of the only other languages which provides a similar application to JavaScript is CSS. CSS is intended to determine the visual aspects of elements on web pages; it is not truly even a scripting language. However, it does have some abilities to change the appearance of a page after it has been loaded. For instance, it can take advantage of the “rollover” (when the mouse hovers over something) attribute of objects to change appearances of different items as the user is navigating the page. However, because CSS is not a real scripting language, is use for real-time dynamic capabilities is far more limited than JavaScript’s.



     
     
    >>> More JavaScript Articles          >>> More By Joe eitel
     

       

    JAVASCRIPT ARTICLES

    - Introduction to JavaScript
    - Adding Elements to a Tree with TreeView jQue...
    - Using the Persist Argument in a TreeView jQu...
    - Using Unique and Toggle in a TreeView jQuery...
    - Using Event Delegation for Mouseover Events ...
    - Using the Animate Option in a Treeview jQuer...
    - Using HTML Lists with Event Delegation in Ja...
    - Opened and Closed Branches on a TreeView jQu...
    - Mouseover Events and Event Delegation in Jav...
    - Creating a TreeView JQuery Hierarchical Navi...
    - Event Delegation in JavaScript
    - A Look at the New YUI Carousel Control
    - Working with Draggable Elements and Transpar...
    - Displaying Pinned Handles with Resizable Con...
    - Building Resizable Containers with the Ext J...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek