471,049 Members | 1,909 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,049 software developers and data experts.

Netscape 7+ & IFrame

I'm using the HTML below as a transition page. It is shown while a
page that takes a long time to load is processed (report.asp). It
works just fine under IE6 but not Netscape 7.

The ReportTransition.htm referenced simply contains this (nothing
else):
<img src="ReportTransition.gif" />

The following is the html that does not work in Netscape 7, any idea
what's wrong with it or a way I could do this better?
<html>
<head>
<script language="javascript">
function BeginPageLoad()
{
window.frames['frameImage'].location = "ReportTransition.htm";
document.location.href = 'report.asp';
}
</script>
</head>
<body onload="BeginPageLoad()">
<table border="0" cellpadding="0" cellspacing="0" width="100%"
height="100%">
<tr>
<td align="center" valign="middle">
<iframe id="frameImage" frameborder="no" width="360"
height="170"></iframe>
</td>
</tr>
</table>
</body>
</html>
Jul 23 '05 #1
2 1283
Brett Robichaud wrote:
I'm using the HTML below as a transition page. It is shown while a
page that takes a long time to load is processed (report.asp). It
works just fine under IE6 but not Netscape 7.

The ReportTransition.htm referenced simply contains this (nothing
else):
<img src="ReportTransition.gif" />

The following is the html that does not work in Netscape 7, any idea
what's wrong with it or a way I could do this better?
<html>
<head>
<script language="javascript">
function BeginPageLoad()
{
window.frames['frameImage'].location = "ReportTransition.htm";
document.location.href = 'report.asp';
}
</script>
</head>
<body onload="BeginPageLoad()">
<table border="0" cellpadding="0" cellspacing="0" width="100%"
height="100%">
<tr>
<td align="center" valign="middle">
<iframe id="frameImage" frameborder="no" width="360"
height="170"></iframe>
</td>
</tr>
</table>
</body>
</html>


See if this works any better:

<script type="text/javascript">
function LoadNewPage(url) {
document.location.href = url;
}
function LoadIframe(url){
document.frames['frameImage'].location.href=url;
}
</script>
</head>

<body
onload="LoadIframe('ReportTransition.htm');LoadNew Page('report.asp');">

Jul 23 '05 #2
On 23 Apr 2004 16:39:45 -0700, Brett Robichaud <br************@yahoo.com>
wrote:
I'm using the HTML below as a transition page. It is shown while a
page that takes a long time to load is processed (report.asp). It
works just fine under IE6 but not Netscape 7.
You might be better off with using the DOM-defined HTMLIFrameElement.src
property. Mozilla certainly supports that, but not location. For example:

var frm = window.frames[ 'frameImage' ];

if( frm ) {
if( 'undefined' != typeof frm.src ) {
frm.src = 'ReportTransition.htm';
} else if( 'undefined' != typeof frm.location ) {
frm.location = 'ReportTransition.htm';
}
}
The ReportTransition.htm referenced simply contains this (nothing
else):
<img src="ReportTransition.gif" />
Do you include an XHTML DOCTYPE before using XHTML syntax? You don't
include any DOCTYPE at all in the HTML you posted.

[snip]
<script language="javascript">


This should read:

<script type="text/javascript">

The type attribute is required whilst the language attribute is deprecated
and should no longer be used.

[snip]

Mike

--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Federico Bari | last post: by
7 posts views Thread by Scott | last post: by
1 post views Thread by Dom | last post: by
4 posts views Thread by Jon | last post: by
6 posts views Thread by Vincent van Beveren | last post: by
2 posts views Thread by apchar | last post: by
1 post views Thread by Balaji. M. | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.