Could someone point out why the CGI script below does not work?
Thanks,
Dave


The CGI (shown below) is used to create a frameset.html file.
http://dowda.rockin.net/final/
Click on one of the left menu choices, ( using Netscape )

This is what the hrefs look like:
<a href="/cgi/frame_setter.cgi?intro">Intro</a>
<a href="/cgi/frame_setter.cgi?examples">Another File...</a>


This works fine in I.E. 5.5 on a Mac, but does not work in Netscape or on Windows,
in these cases the script returns the following html:


# HTML Page out
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN" 
"http://www.w3.org/TR/REC-html40/frameset.dtd";>
<html><head><title>Frame Setter for Gallery</title></head>
<frameset cols="20%,*" frameborder="0" border="0" framespacing="0">
<frame src="/final/pages/leftNav.html" name="Nav" marginwidth="1" marginheight="1" 
scrolling="NO" noresize>
<frame src="/final/pages/gallery.html" name="MAIN" marginwidth="1" marginheight="1" 
scrolling="AUTO" noresize>
<noframes>
<body bgcolor="#FFFFFF" text="#000000">
<h2>Please upgrade your web browser, this section uses frames</h2>
</body></noframes></frameset></html>



------------------------------------
[SCRIPT]


#!/usr/bin/perl -w

# creates frame setting html document
# Last modified: Monday, December 10, 2001 2:39 PM

use CGI qw/:standard/;
use CGI::Carp qw(fatalsToBrowser);

my $pageName =  $ENV{"QUERY_STRING"} || 'intro';  


print header;

print <<HTML;
# HTML Page out
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN" 
"http://www.w3.org/TR/REC-html40/frameset.dtd";>
<html><head><title>Frame Setter for \u$pageName</title></head>
<frameset cols="20%,*" frameborder="0" border="0" framespacing="0">
<frame src="/final/pages/leftNav.html" name="Nav" marginwidth="1" marginheight="1" 
scrolling="NO" noresize>
<frame src="/final/pages/${pageName}.html" name="MAIN" marginwidth="1" 
marginheight="1" scrolling="AUTO" noresize>
<noframes>
<body bgcolor="#FFFFFF" text="#000000">
<h2>Please upgrade your web browser, this section uses frames</h2>
</body></noframes></frameset></html>
HTML
exit

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to