Results 1 to 3 of 3

Thread: iFrame script not working in IE8 & FF

  1. #1
    Join Date
    Jun 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default iFrame script not working in IE8 & FF

    1) Script Title:
    Iframe SSI script II

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...iframessi2.htm

    3) Describe problem:
    The script doesn't seem to work in IE 8 or FireFox even though compatability is listed as..
    IE 5 and above. Firefox 1.0+. NS6+ and FF beta are assumed as well. Opera 7 and above.

    Instead of the page loading into the specified iFrame, it opens in a new window.

    The script works great in chrome and even on an iPad. Odd.

    Any ideas? Thanks

  2. #2
    Join Date
    Jun 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Well, while waiting for replies and googling around, i found the solution.
    For anyone that cares:

    The code gives the iframe an id...
    <iframe id="myframe" src="externalpage.htm" (etc)>

    But apparently IE and FF don't recognize the "id" tag to define the iframe, they both prefer the "name" tag. So, changed my code to...
    <iframe id="myframe" name="myframe" src="externalpage.htm" (etc)>

    And it works in all browsers. Who knew? (well, apart from The Google)

  3. #3
    Join Date
    Jul 2012
    Posts
    24
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default just what I was looking for ...

    and thanks for posting.

    Though it does not work yet. Since I updated FF it does not resize the iFrame anymore. I followed your suggestion, and added the "name" tag - it doesn't work.

    Did you change anything in the script itself?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •