JavaScript
  Home arrow JavaScript arrow Page 2 - ACP Tab Web Page
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

ACP Tab Web Page
By: Chrysanthus Forcha
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2009-10-19

    Table of Contents:
  • ACP Tab Web Page
  • ACP Feature
  • The Code
  • The Ajax Functions

  • 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


    ACP Tab Web Page - ACP Feature


    (Page 2 of 4 )

    When the tabWebPages.htm file is downloaded, you see the page content of the first tab. This content comes with the file. The next two pages' contents are downloaded by Ajax, after the first has been downloaded with the tabWebPages.htm file. These two pages are downloaded as strings in the background, unknown to the user. By the time the user would have finished reading the first page, the string contents of the other two pages would have been downloaded.

    With conventional tab web pages, the user has to wait for all the page contents to download, before the complete page settles. With ACP, the complete web page settles after the first page content has been downloaded (with the file tabWebPages.htm).

    Technical Features

    The first line of the tabWebPages.htm file has the buttons (Tabs). These are normal HTML buttons. There is a DIV element below these buttons. The page content for any button goes into this DIV element.

    Each of the buttons (Tabs) has an onclick event attribute. When you click any of these buttons, a JavaScript function is called. This function has the button number (1, 2 or 3) of the button clicked as an argument. Whenever this function is called, it replaces whatever was in the DIV element (below the line of Tabs) with the page content for the button clicked.

    After the first page content has been downloaded, there are two Ajax functions that download the contents of the other two pages in the form of strings -- one string per page.

    More JavaScript Articles
    More By Chrysanthus Forcha


     

    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 8 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek