Forum Moderators: open

Message Too Old, No Replies

Coder hit by a bus

Netscape 6.x Incompatibility

         

blaze90265

7:37 pm on Aug 2, 2002 (gmt 0)



I have a small problem with my site and can't find the guy who wrote it for me.
All other parts of the site work fine under IE and NN. It just seems to be this one page.
When I pull it up in NN 6.2, it comes up blank and goes nowhere.
I can change and upload the page myself, but can't figure out what the problem is.

<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>

jdMorgan

7:53 pm on Aug 2, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



blaze90265,

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

dhdweb

8:45 pm on Aug 2, 2002 (gmt 0)

10+ Year Member



Call me slow but I just figured out your subject line "Coder hit by a bus" LOL

ergophobe

10:09 pm on Aug 2, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



There is absolutely nothing in the BODY of this document. All content is in the HEAD.

ergophobe

11:13 pm on Aug 2, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I took a closer look. There are lots of problems with this document I think, such as incorrect nesting and other things.

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]

jdMorgan

2:56 am on Aug 3, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ergophobe,

document.write("<frame name='categories' scrolling='AUTO' noresize src='/cgi/searchdb.cgi?mid=" +delineate(text));

No closing single quote after ?mid= ???

Jim

ergophobe

5:41 am on Aug 3, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Jim


No closing single quote after ?mid= ???

That's what I thought at first, but it wraps onto the next line with another GET param and the single quote closes the tag after that (or at least I tried it that way).

Tom