Cgi frames wondering
Hershel Fisch
hershf at rgllc.us
Wed Dec 12 17:12:39 EST 2007
Hi all I'm wondering why I cant get frames to work with rev Cgi osx 10.3.9?
The cgi file named "frames.cgi",
#!revolution
on startup
put "frames.txt" into theTemplateFile
if there is not a file theTemplateFile then
put "Error: template missing" into theData
else
put url ("file:"&theTemplateFile) into theData
end if
# write minimal set of HTTP headers to stdout
put "Content-Type: text/html" & cr
put "Content-Length:" && the length of theData & cr & cr
put theData
end startup
The text file named "frames.txt"
<html>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<META NAME="keywords" CONTENT="industrial real estate, commercial real
estate, commercial real estate Brooklyn, office space available, Brooklyn,
available real estate,realtors group llc, Realtors Group LLC, Real estate">
<frameset border="1" rows="159,*">
<frame noresize="noresize" scrolling="no" frameborder="1" border="1"
framespacing="0" src="frame1.html">
<frameset border="0" cols="200,*">
<frame noresize="noresize" scrolling="no" frameborder="0" border="0"
framespacing="0" src="frame2.html">
<frame noresize="noresize" scrolling="yes" frameborder="0" border="0"
framespacing="0" src="frame3.html" name="showframe">
</frameset>
</frameset>
</html>
The frame file named "frame1.html"
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled</title>
<meta name="generator" content="BBEdit 8.5" />
</head>
<body>
<p> frame 1 </p>
</body>
</html>
The frame file named "frame2.html"
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled</title>
<meta name="generator" content="BBEdit 8.5" />
</head>
<body>
<p> frame 2 </p>
</body>
</html>
The frame file named "frame3.html"
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled</title>
<meta name="generator" content="BBEdit 8.5" />
</head>
<body>
<p> frame 3 </p>
</body>
</html>
Thanks, Hershel
More information about the use-livecode
mailing list