Home arrow HTML arrow Page 5 - Fast FAQ Session with ACP
HTML

Fast FAQ Session with ACP


You want to make sure all of the pages on your web site are user-friendly. That goes double for your FAQ page. If you have a frequently-asked questions page that's very long, however, download times can make this challenging. Fortunately, there is a way to make such a page download quickly.

Author Info:
By: Chrysanthus Forcha
Rating: 5 stars5 stars5 stars5 stars5 stars / 1
June 08, 2009
TABLE OF CONTENTS:
  1. · Fast FAQ Session with ACP
  2. · Our Project
  3. · Summary of FAQ Page Features
  4. · The Code
  5. · The Second Page

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Fast FAQ Session with ACP - The Second Page
(Page 5 of 5 )

At the server, the second page is in the form of a string in a Perl file in the cgi-bin directory. This is the code skeleton of the file:

$returnStr = qq{

# An HTML page code is here.

};

 

print $returnStr;

There are two Perl statements here. The first one is the declaration of the $returnStr variable. The string, which is the content (HTML code) of the second page at the browser, is assigned to this variable. The next Perl statement returns the string when this file is called. The HTML code in the string begins from the <html> start tag to the </html> end tag. The code is similar to that of the first page. The name of the file for the second page is pge1faqStr.pl.

The Third Page

At the server, the third page is in the form of a string in a Perl file in the cgi-bin directory. The code is almost the same as that of the first page. The name of the file for the third page is pge2faqStr.pl.

There are three files for the project. I put all the files into one zip file. You can download the zip file from:

faqacp.ZIP

Download the file and experiment with it.

The Project and Browsers

All the code worked well with Internet Explorer 6 and Opera 9. It worked reasonably with Mozilla Firefox 2.

I hope this article has been useful.


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.

blog comments powered by Disqus
HTML ARTICLES

- HTML5 Boilerplate: Working with jQuery and M...
- HTML5 Boilerplate Introduction
- New API Platform for HTML5
- BBC Adopts HTML 5, Mozilla Addresses Issues
- Advanced Sticky Footers in HTML and CSS
- HTML and CSS Sticky Footers
- Strategy Analytics Predicts HTML5 Phones to ...
- HTML5 Guidelines for Web Developers
- Learning HTML5 Game Programming
- More Engaging CSS3 and HTML Background Effec...
- Engaging HTML and CSS3 Background Effects
- More Web Columns with CSS3 and HTML
- Columns with CSS3 and HTML
- Creating Inline-Block HTML Elements with CSS
- Drag and Drop in HTML5: Parsing Local Files

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 6 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials