Difference between IE and Netscape

Chris Kelleher

Administrator
Staff member
I have created the html code below to get a starting page to a webspeed
application. Today I found that this only works on IE. In Netscape you
get an empty window. Can anyone tell me why that would be the case?
Is there a solution?

Tia,

Peter

<BLOCKQUOTE><font size="1" face="Arial, Verdana">code:</font><HR><pre>
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;My Title&lt;/title&gt;
&lt;base target="_top"&gt;
&lt;/head&gt;
&lt;frameset framespacing="0" border="false" frameborder="0" rows="*"&gt;
&lt;frame name="newmain2" src="/scripts/cgiip.exe/WService=wsorder/login.htm"
scrolling="auto" marginwidth="0" marginheight="0"&gt;
&lt;noframes&gt;
&lt;body&gt;
&lt;p&gt;This page uses frames, but your browser doesn't support them.&lt;/p&gt;
&lt;/body&gt;
&lt;/noframes&gt;
&lt;/frameset&gt;
&lt;/html&gt;
[/code]
 

Chris Kelleher

Administrator
Staff member
It looks like IE is more forgiving. I guess you technically
could create one HTML Frame, but why? It looks like you're
attempting to provide a means for your users to access your
WS app without having to type out a full WS URL. There are
other (better) ways to do this.


If you can use JS (this will work in NS3+ AND IE3+):

<BLOCKQUOTE><font size="1" face="Arial, Verdana">code:</font><HR><pre>
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;JS Redirect&lt;/title&gt;
&lt;/head&gt;

&lt;script language="JavaScript"&gt;
&lt;!--
function runRedirect() {
window.location =
"/scripts/cgiip.exe/WService=wsorder/login.htm";
}
// --&gt;
&lt;/script&gt;

&lt;body bgcolor="#FFFFFF" onLoad="runRedirect()"&gt;
&lt;/body&gt;
&lt;/html&gt;
[/code]

OR this:

<BLOCKQUOTE><font size="1" face="Arial, Verdana">code:</font><HR><pre>
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;JS Redirect&lt;/title&gt;
&lt;/head&gt;
&lt;body bgcolor="#FFFFFF""&gt;

&lt;script language="JavaScript"&gt;
&lt;!--
window.location = "/scripts/cgiip.exe/WService=wsorder/login.htm";
// --&gt;
&lt;/script&gt;

&lt;/body&gt;
&lt;/html&gt;
[/code]


If you don't want to rely on JS, you can use META tag refresh:

<BLOCKQUOTE><font size="1" face="Arial, Verdana">code:</font><HR><pre>
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;META Redirect&lt;/title&gt;
&lt;meta http-equiv="refresh" content="0;
url=/scripts/cgiip.exe/WService=wsorder/login.htm"&gt;
&lt;/head&gt;
&lt;body bgcolor="#FFFFFF""&gt;
&lt;/body&gt;
&lt;/html&gt;
[/code]

I believe you can also use the HTTP Location header as a
META tag too, but I haven't tried that method (from a
META tag).

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
R o b e r t J. M i r r o
rmirro@microserve.net http://www.microserve.net/~rmirro/

I have lost the will to live
Simply nothing more to give
There is nothing more for me
Need the end to set me free
- Metallica
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 

Chris Kelleher

Administrator
Staff member
Quick guess, put your &lt;NOFRAME&gt; section outside your frameset.
Netscape is not very tolerant with HTML errors!

cheers,

Per S Digre, Consultant / PSC www.digre.com
Pager: 888-643-0746 Voice mail: 781-280-4792
 

Chris Kelleher

Administrator
Staff member
Yes, I've seen this problem before. I think the timer
(content=0) starts as the HTML is being loaded. The
problem seems to be that the entire webpage must be
loaded by the browser before the redirect can occur
(I think).

So, if the browser is still loading the HTML (or images,
or whatever) and it's time to do the redirect, it won't
happen. When you hit your "refresh" button, the browser
is probably going to cache for the HTML and associated
files (like images), so it loads the page much more
quickly (before the META refresh is ready to redirect).

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
R o b e r t J. M i r r o
rmirro@microserve.net http://www.microserve.net/~rmirro/

I have lost the will to live
Simply nothing more to give
There is nothing more for me
Need the end to set me free
- Metallica
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
Top