Forum Moderators: open
<HTML>
<HEAD>
<FORM NAME="form">
<INPUT TYPE="hidden" NAME="mid">
</FORM>
<SCRIPT LANGUAGE="javascript">
var locate = window.location
document.form.mid.value = locate
var text = document.form.mid.value
function delineate(str)
{
point = str.lastIndexOf("=");
return(str.substring(point+1,str.length));
}
document.write("<meta http-equiv='Content-Type' content='text/html; charset=ISO-8859-1'>");
document.write("<title>Welcome to My Store</title>");
document.write("<FRAMESET rows='100,*' framespacing=0 border=0>");
document.write("<FRAME src='store-banner.htm' name='banner' noresize scrolling='no' marginwidth='0' marginheight='0' frameborder='0'>");
document.write("<frameset cols='176,*' frameborder='NO' border='0' framespacing='0' rows='*'>");
document.write("<frame name='categories' scrolling='AUTO' noresize src='/cgi/searchdb.cgi?mid=" +delineate(text));
document.write("&Action=listcat' marginwidth='0' marginheight='0' frameborder='NO'>");
document.write("<FRAME src='store-opening.htm' name='main' marginwidth='0' marginheight='0' frameborder='0'>");
document.write("</frameset></FRAMESET><noframes></noframes>");
</SCRIPT>
</HEAD><BODY>
</BODY>
</HTML>
I don't have the expertise needed to answer browser-specific questions, but here are a few comments:
I have never seen a <form> tag in the <head> of a document before. This may be trick that once
worked and does not work any more.
This page will do nothing if javascript is disabled. It will just sit there, because there is no
<noscript> section to warn users that the function requires javascript.
Similarly, there is no <noframes> section, which means the page is blank as far as several search
engines spiders are concerned.
The javascript tag is missing it's "type" declaration.
Most if not all of the <head> section stuff written by the javascript looks static and could simply
be coded using straight html. This might go a long way toward making it work properly.
Anybody see any incompatibility stuff in he JS code? <bump>
Jim
I got it working in Mozilla 1.1beta, but still have problems in Netscape 6.2.
If the cgi file is in the same dir as the main file, it works everywhere.... can't figure that out. The following works (not that some filenames have been changed and some borders added to make it easier to see).
The key thing that I can't get to work is to have it follow the path to the /cgi directory. It works everywhere but NS6.
That said, the FORM in the head and some other stuff is pretty weird.
[code]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html>
<head>
<FORM NAME="form">
<INPUT TYPE="hidden" NAME="mid">
</FORM>
<meta http-equiv='Content-Type' content='text/html; charset=ISO-8859-1'>
<title>
Welcome to My Store
</title>
<script type="text/javascript">
var locate = window.location
document.form.mid.value = locate
var text = document.form.mid.value
function delineate(str)
{
point = str.lastIndexOf("=");
return(str.substring(point+1,str.length));
}
</script>
</head>
<SCRIPT type="text/javascript">
document.write("<FRAMESET rows='100,*'>");
document.write("<FRAME src='store-banner.htm' name='banner' noresize scrolling='no' marginwidth='0' marginheight='0' border='1'>");
document.write("<frameset cols='176,*' rows='*'>");
document.write("<frame name='categories' src='searchdb.htm'>");
document.write("<FRAME src='store-opening.htm' name='main' border='1'>");
document.write("</frameset><noframes><body></body></noframes></FRAMESET>");
</SCRIPT>
</html>
[code]