Building an Image Gallery with Active Client Pages
When you have a web page in front of you that is of an image gallery and your Internet connection is slow, you will notice that, when you click a button or link to see the next image, this next image generally takes a long time to appear. If you read this two-part series, visitors to your web site will no longer have to wait a long time for images to appear in their entirety. Thanks to a new technology called Active Client Pages, abbreviated ACP, only the first image or the first set of images will take a long time to appear on the screen.
You need a personal web server for the demonstration. After unzipping the file, copy the HTML file to the root directory of your personal web server. Create a directory in your root directory called images and copy the image files there.
Open your browser and type http://localhost/simpleImageGallery.htm in the address bar and click Go. You should see the first image. You can then click the “Next Picture” button to see the other images.
With the personal web server I am using, the domain is localhost; that is why the HTML file in the link you type in the address bar is preceded by http://localhost/.
In the next part of the series, we shall look at a more complicated case.
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.