HTML
  Home arrow HTML arrow Completing an ACP 3D HTML Table Image Gall...
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? 
HTML

Completing an ACP 3D HTML Table Image Gallery
By: Chrysanthus Forcha
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2009-08-11

    Table of Contents:
  • Completing an ACP 3D HTML Table Image Gallery
  • The Content of the DIV Element
  • Content continued
  • User Viewing the Gallery for the Second Time

  • 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


    Completing an ACP 3D HTML Table Image Gallery


    (Page 1 of 4 )

    Welcome to the second part of a two-part series that explains how to set up a three-dimensional HTML image gallery using Active Client Pages (ACP). In this part of the series, among other things, we'll get a close look at the JavaScript that helps to keep things running smoothly.

    ACP Features in 3D HTML Table Images Gallery

    Introduction

    In the previous part of the series, the images were downloaded to fit into the table. In other words the tag for each image is in a table cell of the 3D HTML table. With ACP you download what the user has to see first. After this, the other things the user needs to see are downloaded as the user views the initial content of the page.

    Remember, for this series we have just one page. So the first set of images are downloaded initially with the 3D table; additionally, the tags for the first set of images are downloaded in the cells of the first plane of the 3D table.

    The tags for the images of the other planes are placed in the web page, below the 3D table (not in the cells of the 3D table), in the order in which they appear in the planes. These are downloaded later than the 3D table in the page. Script is used to fit the tags into the cells of the second plane and the planes after the second.

    These images at the bottom are actually in a DIV element. The value of the display property of this DIV element is “none.” So the DIV element is not seen and it does not occupy space in the web page. This means the images in the DIV elements are also not seen and do not occupy space in the web page (note that the value of the display property of these tags is "block;" they are not seen because they are in the DIV element).

    In this part of the series I explain how to place your image tags and the JavaScript that manages them.

    How fast operation comes about

    The need for ACP here, for fast operation, is because images take a long time  to download. To explain what I said above, as soon as the web page is displayed, the user has some images to see. By the time the user wants to see the images for the second plane, they would have been downloaded. By the time he wants to see those for the third plane, they would also have been downloaded. In this way, the operation of the image gallery, from the point of view of the user, is fast.

    In a way, we have tricked the user. With a conventional image gallery the user may have to wait for all of the images to be downloaded before he starts using the gallery. Otherwise, when he clicks a link (an element) to see an image, he has to wait for the image to be downloaded before he sees it. With ACP, the user has to wait only for the first set of images to be downloaded. He does not wait for the other images to be downloaded, as they are downloaded in the background without him knowing. So the operation of the gallery appears fast.

    We know that when the browser downloads an image, it caches the image; whenever you need the image in that session, for a different page, it will be taken from the cache and not from the server, and the download time is omitted. We also assume that the user has to see the first set of images, first, before he goes on to see the next set. So when the user types the address of the page in his address bar of his browser, he would see the first set of images with the initial (top) part of the web page; while he is viewing it, we have the rest of the images downloaded in the background.

    The presence of the tags below the 3D table (in the DIV element) downloads the rest of the images. To download an image, all you need is the tag; the small problem with this is that the mouse pointer becomes an arrow and hourglass while the image is being downloaded. This is not a big deal.

    More HTML Articles
    More By Chrysanthus Forcha


     

    HTML ARTICLES

    - Comparing Browser Response to Active Client ...
    - Testing Browser Response to Active Client Pa...
    - Active Client Pages: Completing the Code for...
    - ACP and Browsers: Setting up an Example
    - How Browsers Respond to Active Client Pages
    - Completing a Tree with Active Client Pages
    - HTML Form Verification and ACP
    - Building an ACP Tree
    - Completing an ACP 3D HTML Table Image Gallery
    - Building an ACP 3D HTML Table Image Gallery
    - A Multiple Page Image Gallery with Active Cl...
    - Building an Image Gallery with Active Client...
    - Concluding a Menu for All Browsers
    - A Vertical Menu for All Browsers
    - Downloading Long HTML Pages with ACP







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