W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > July to September 2003

Re: Menus, navigation, and simplicity (Perhaps slightly off-topic)

From: Matthew Smith <matt@kbc.net.au>
Date: Tue, 15 Jul 2003 08:16:53 +0930
Message-ID: <3F1332DD.7080708@kbc.net.au>
To: w3c-wai-ig@w3.org

Kevin A Sesock wrote:
> Of course, I am aware I could create a Perl script, or something to the 
> effect, and do this similar thing, but I have been unaware of anything 
> that's already available. Additionally, your average web dev. package 
> will allow the creation of such an item, but it's usually far less 
> automated, and usually more complex (again, I reference my lack of time 
> available for such a project).

You've got Perl but no Web server access?  No problem!  Consider this 
simple example script fragment:

my $q=new CGI;
open (MYFILE, ">index.html");
print MYFILE $q->start_html();
print MYFILE "<h1>My Page</h1><p>Hello, World</p>";
print MYFILE $q->end_html();
close MYFILE;

Rather than sending our code to standard output - normally directed to 
your Web server, you simply put the output into a file instead.  NOTE - 
Don't use the CGI.pm header() when doing it like this, otherwise you'll 
be putting things in your file best left to the Web server.

If you use validation tools, this technique can also be handy for 
checking code that normally lurks in password-protected areas of a site 
where validators fear to tread.  (The alternative is to navigate to the 
page in a browser, then save the page source, but that's getting away 
from the original point.)



Matthew Smith
Kadina Business Consultancy
South Australia
Received on Monday, 14 July 2003 18:47:10 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 13 October 2015 16:21:24 UTC