Welcome to WebmasterWorld Guest from 54.205.75.60

Forum Moderators: open

Message Too Old, No Replies

Opera not liking iframes?

Opera doesn't load iframes on initial open

   
3:20 am on Nov 27, 2007 (gmt 0)

5+ Year Member



I have a website that uses iframes to display dynamic content from a database. Works ok with all browsers except opera (and apparently safari but cant check that on my windows pc - even the new beta version wont work)

When I first open the site in opera, it doesn't load any dynamic content, but if I click on a menu item it then loads everything properly.

The initial load is triggered with this:

<body onLoad="this.open('blockNav.asp?sectionID=8', 'navigation')">

Is there any reason this would work with ie & firefox but not opera?

Thanks

7:54 pm on Jan 28, 2008 (gmt 0)

WebmasterWorld Senior Member encyclo is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Welcome to WebmasterWorld moglite, sorry it took so long to reply to your post. Did you find a solution to this? Are you using any Javascript for compatibility checking (eg. document.all etc.)? Have you tried disabling the pop-up blocker?
1:51 pm on Jan 30, 2008 (gmt 0)

5+ Year Member



Hi encyclo

Sorry, yes i did find a solution. Apparently the problem was 'this.open' - i replaced it with 'window.open' and this fixed the problem. so now i use:

<body onLoad="window.open('blockNav.asp?sectionID=1', 'navigation')">

Thanks for replying. Hope this is useful for someone else