Netscape 7+ & IFrame

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Brett Robichaud

    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 ReportTransitio n.htm referenced simply contains this (nothing
    else):
    <img src="ReportTran sition.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="javas cript">
    function BeginPageLoad()
    {
    window.frames['frameImage'].location = "ReportTransiti on.htm";
    document.locati on.href = 'report.asp';
    }
    </script>
    </head>
    <body onload="BeginPa geLoad()">
    <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>
  • mscir

    #2
    Re: Netscape 7+ &amp; IFrame

    Brett Robichaud wrote:[color=blue]
    > 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 ReportTransitio n.htm referenced simply contains this (nothing
    > else):
    > <img src="ReportTran sition.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="javas cript">
    > function BeginPageLoad()
    > {
    > window.frames['frameImage'].location = "ReportTransiti on.htm";
    > document.locati on.href = 'report.asp';
    > }
    > </script>
    > </head>
    > <body onload="BeginPa geLoad()">
    > <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>[/color]

    See if this works any better:

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

    <body
    onload="LoadIfr ame('ReportTran sition.htm');Lo adNewPage('repo rt.asp');">

    Comment

    • Michael Winter

      #3
      Re: Netscape 7+ &amp; IFrame

      On 23 Apr 2004 16:39:45 -0700, Brett Robichaud <brettrobichaud @yahoo.com>
      wrote:
      [color=blue]
      > 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.[/color]

      You might be better off with using the DOM-defined HTMLIFrameEleme nt.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 = 'ReportTransiti on.htm';
      } else if( 'undefined' != typeof frm.location ) {
      frm.location = 'ReportTransiti on.htm';
      }
      }
      [color=blue]
      > The ReportTransitio n.htm referenced simply contains this (nothing
      > else):
      > <img src="ReportTran sition.gif" />[/color]

      Do you include an XHTML DOCTYPE before using XHTML syntax? You don't
      include any DOCTYPE at all in the HTML you posted.

      [snip]
      [color=blue]
      > <script language="javas cript">[/color]

      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.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)

      Comment

      Working...