JavaScript
  Home arrow JavaScript arrow 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


    (Page 1 of 4 )

    A tab web page is a perfect candidate for the technology of Active Client Pages (ACP). It's a web page with buttons at the top. When you click a button, all the HTML content below the line of buttons changes. It is as if each button has a page hidden in it. ACP makes loading those pages go much more quickly.

    When you click a button, it displays its page content, replacing the former page content. With ACP the time to download all these page contents is the time to download only the first page -- well, this is actually as seen by the user. That is the advantage ACP brings to conventional tab web pages.

    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 user does not have to wait for all the page contents to be downloaded before the page settles.

    You need basic knowledge of HTML, JavaScript and Ajax to understand this article.

    Our Example

    We shall use a simple example for illustration. I use a personal web server for this example. The user has to type http://localhost/tabWebPages.htm into the address bar of his browser. When he does this, the content of the tabWebPages.htm page will be displayed. In your commercial project, you have to replace http://localhost/ with your domain, like http://www.mywebsite.com/. http://localhost/ is the default web site for a personal web server.

    The page for the WebPages.htm file is the complete page. It has the string content of each of the real pages you see when you click a tab at the top of the page.

    There are three buttons on the first line of this page. These buttons are the tabs. The labels for the buttons are Tab1, Tab2 and Tab3. When the tabWebPages.htm file has just been downloaded (displayed), what you see below the buttons (Tab line), belong to the first button (Tab). When you click the second tab, you see its own page content. When you click the third button, you see the page content of the third tab. When you click the first button (Tab), you see its own page. Let us call the display produced by each button the real page.

    The content of the first real page is simply,

    “Page HTML Elements for Tab One.”

    The content of the second real page is simply,

    “Page HTML Elements for Tab Two.”

    The content of the third real page is simply,

    “Page HTML Elements for Tab Three.”

    More JavaScript Articles
    More By Chrysanthus Forcha


     

    JAVASCRIPT ARTICLES

    - Comparing Fields and Customizing Error Messa...
    - Checking Numbers and File Extensions with jQ...
    - Validating Digits and Dates with jQuery`s Va...
    - Validating Ranges, Emails, and URLs with jQu...
    - More Uses for the jQuery Tooltip Plug-in`s b...
    - Building Image-Based Tooltips with the jQuer...
    - Using the jQuery Tooltip Plug-in`s bodyHandl...
    - Using Rangelength, Min and Max with the Vali...
    - Using Minlength and Maxlength with the Valid...
    - Modifying Tooltip Coordinates with the jQuer...
    - Applying a Fade Out Effect with the jQuery T...
    - Tracking Mouse Movements with the jQuery Too...
    - Checking Online Forms with the Validator jQu...
    - Nested JavaScript Functions as Objects
    - The jQuery Tooltip Plug-in







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