JavaScript
  Home arrow JavaScript arrow Page 4 - Active Client Pages: Chrys`s Approach
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
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? 
JAVASCRIPT

Active Client Pages: Chrys`s Approach
By: Chrysanthus Forcha
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2009-06-26

    Table of Contents:
  • Active Client Pages: Chrys`s Approach
  • Active Server Pages and Active Client Pages
  • Advantages of Active Client Pages
  • DOM Properties and Methods to Use

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb 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


    Active Client Pages: Chrys`s Approach - DOM Properties and Methods to Use


    (Page 4 of 4 )

    We shall use the DOM Document object. Each page is a DOM document object.

    Document Object Properties

    cookie

    Sets or returns all cookies associated with the current document


    Document Object Methods

    open()

    Opens a stream to collect the output from any document.write() or document.writeln() methods.

    close()

    Closes an output stream opened with the document.open() method, and displays the collected data.

    write()

    Writes HTML expressions or JavaScript code to a document.

    writeln()

    Identical to the write() method, with the addition of writing a new line character after each expression.


    We shall not use the writeln() method in this series. If you want more information on the write() and writeln() methods, then wait for an article that I will write on that. In that article I will say a lot about when, where and how to use these two methods. I will give you some explanation of the write method as we go along.

    The Document Open Method

    The document open method is a very important method in this series. Do not confuse this with the window open method. I will talk about the window open method when we deal with the next (window) phase of my approach. Let us now look at the document open method in more detail. We look at its syntax and parameters.

    Syntax

    The syntax is:

    document.open(mimetype,replace)

    The "document" here refers to the current document. It returns a reference to the document (page) opened. If a document already exists in the target, it will be cleared. If this method has no arguments, a new window with about:blank is displayed.

    Parameter

    Description

    mimetype

    Optional. Specifies the type of document you are writing to. Default value is "text/html"

    replace

    Optional. When set, it causes the history entry for the new document to inherit the history entry from the parent document


    We have done a lot for this part. In the next part of the series, we shall look at the roots that give rise to my approach. I'll see you in the next part.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

     

    JAVASCRIPT ARTICLES

    - Using jQuery to Preload Images with CSS and ...
    - Using Client-Side Scripting to Preload Image...
    - Removing Non-Semantic Markup when Preloading...
    - Using the Display CSS Property to Preload Im...
    - Preloading Images with CSS and JavaScript
    - Scaling and Moving Web Page Elements with th...
    - Fading, Hiding and Sliding HTML Elements wit...
    - Toggling CSS Properties with the GX JavaScri...
    - Cancel, Queue and Pause Animations with the ...
    - Producing Elastic Effects with the GX JavaSc...
    - Moving Divs Diagonally with the GX JavaScrip...
    - Moving Elements Vertically and Horizontally ...
    - Making Bouncing Effects in Parallel with the...
    - Creating Bouncing Effects with the GX JavaSc...
    - Manipulating Background Colors with the GX J...







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