Problem with Javascript and iFrame

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

    Problem with Javascript and iFrame

    Hello,





    Please take a look of the above two links. The two pages are almost
    identical. Each has a slide show, a image loading progress bar and a
    message scroller. The message scroller is done with an <iframe>.

    The first link works okay with both IE and NS. However, the second one
    only works with NS. In IE5 or IE6, the iframe has an error message
    "action canceled". Sometimes it works on the first try, but upon
    "reload" of this page, the error message shows up or the scroller fails to
    start. On the second page, I moved the script for the image
    loading bar away from "onload" into the main body. This seems to cause
    the problem. I can't figure out why the change of the script location can
    cause this.

    I am hoping to get away from using iframe, but not sure how to make
    necessary modifications.

    Thanks in advance for your help!

    Terry

  • Dennis M. Marks

    #2
    Re: Problem with Javascript and iFrame

    I have read the following message from Terry <NoSpam@NoSpam. con>
    and have decided to lend my vast knowledge.

    The writer said:[color=blue]
    > Hello,
    >
    > http://free.hostdepartment.com/j/jav...this_works.htm
    >
    > http://free.hostdepartment.com/j/jav...is_doesnot.htm
    >
    > Please take a look of the above two links. The two pages are almost
    > identical. Each has a slide show, a image loading progress bar and a
    > message scroller. The message scroller is done with an <iframe>.
    >
    > The first link works okay with both IE and NS. However, the second one
    > only works with NS. In IE5 or IE6, the iframe has an error message
    > "action canceled". Sometimes it works on the first try, but upon
    > "reload" of this page, the error message shows up or the scroller fails to
    > start. On the second page, I moved the script for the image
    > loading bar away from "onload" into the main body. This seems to cause
    > the problem. I can't figure out why the change of the script location can
    > cause this.
    >
    > I am hoping to get away from using iframe, but not sure how to make
    > necessary modifications.
    >
    > Thanks in advance for your help!
    >
    > Terry
    >
    >[/color]

    and my reply is:
    You didn't say what computer. On a Mac with IE 5 it seems to work. With
    Netscape 7 the scrolling box does not appear and the progress bar
    flashes.

    --
    Dennis M. Marks

    Replace domain.invalid with dcsi.net


    -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
    http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
    -----== Over 100,000 Newsgroups - 19 Different Servers! =-----

    Comment

    • Terry

      #3
      Re: Problem with Javascript and iFrame

      [color=blue][color=green]
      > > http://free.hostdepartment.com/j/jav...this_works.htm
      > >
      > > http://free.hostdepartment.com/j/jav...is_doesnot.htm
      > >
      > > Please take a look of the above two links. The two pages are almost
      > > identical. Each has a slide show, a image loading progress bar and a
      > > message scroller. The message scroller is done with an <iframe>.
      > >
      > > The first link works okay with both IE and NS. However, the second one
      > > only works with NS. In IE5 or IE6, the iframe has an error message
      > > "action canceled". Sometimes it works on the first try, but upon
      > > "reload" of this page, the error message shows up or the scroller fails to
      > > start. On the second page, I moved the script for the image
      > > loading bar away from "onload" into the main body. This seems to cause
      > > the problem. I can't figure out why the change of the script location can
      > > cause this.
      > >
      > > I am hoping to get away from using iframe, but not sure how to make
      > > necessary modifications.
      > >
      > > Thanks in advance for your help!
      > >
      > > Terry
      > >
      > >[/color]
      >
      > and my reply is:
      > You didn't say what computer. On a Mac with IE 5 it seems to work. With
      > Netscape 7 the scrolling box does not appear and the progress bar
      > flashes.
      >[/color]

      I use Windows 2000. Tried both IE5 and 6 and saw the "action canceled"
      message. Sometimes, the "action canceled" message appeared on the second
      try-page reload. This works okay in Mozilla 1.4.

      Terry

      Comment

      Working...