473,394 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 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 1368
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Federico Bari | last post by:
Good morning all from italy, i have probably a compatibility problem with a html/javascript page. The aim of the code of the file test.htm you find here following (copy the 3 files in the...
1
by: Christian Radermacher | last post by:
Hi, the following code has the mentioned behaviour: <html> <head> <script type="text/javascript"> function newA() { for (i=0;i<3;i++) { var a = window.frames.document.createElement("a");
7
by: Scott | last post by:
Hello All, I've been reading all of the various issues with Iframes in netscape. I have tried all of the various fixes posted, and have even implemented both an iframe and ilayer. My problem is...
1
by: Dom | last post by:
Hi, Can anyone help me with this teaser ? I have an iframe with id and name set to 'iframe', in which I load a frameset of two frames (lets call them TopFrame and BottomFrame). Inside frame...
4
by: Treetop | last post by:
I have code that works in IE but not Netscape 7+. This code allows me to have a list of links that bring up an image and description in an iframe. This works great in IE, however I have users...
4
by: Jon | last post by:
Hi, I have an iframe in a cell: <td id="contents" width="643"> <iframe width="643" height="232" src="home.asp" frameborder="0" scrolling="no"></iframe> </td> <td...
6
by: Vincent van Beveren | last post by:
Hey everyone, I have trouble capturing events in Netscape 7.1. I am building a WYSIWYG editor thingy which should both work in IE and NS 7. For this I use designMode='on'. However, it seems...
2
by: apchar | last post by:
I have a simple ad rotator that's driving mozilla and netscape a little crazy. You know that symbol in the upper right corner of the browser that animates while a page is downloading and is...
1
by: Balaji. M. | last post by:
Hi, The following code not works in netscape 7.2, function WizardMoveNext () { CurrentStep++; WizardPage = "regreqstep" + CurrentStep + ".php"; alert ("Current Wizard Page " + WizardPage);...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.