• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

javascript and iFrame

 
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all, I have a problem to display pages with iFrame. I'm using javascript openwindow function to open the link in new window.

At first few seconds the page looks fine, then it suddenly changed to display the page's iFrame only.

The same function works well if the link doesn't use any iFrame in the page.

Any idea how I can make the iFrame display along with the contents in a new javascript open window?
 
Sheriff
Posts: 67745
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We're going to need to see the code. Please be sure to use UBB code tags when posting code to the forums.
 
vivien siu
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

the url is http://intranet.my/apps/myh/circulars.nsf/AllbyDate?OpenView, inside this url there's an iFrame. When load the page, contents will appear for a second but after that it will be "overlapped" by the iFrame.
[ October 10, 2007: Message edited by: Bear Bibeault ]
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think you need to focus on how the new page loads. It sounds like you have some content in addition to an iframe on the page. Are you controlling the size of the iframe? If not, maybe you need to. Based on your description, it doesn't sound like your problem has anything to do with opening the window.
 
vivien siu
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Then does the error has anything to do with it being a .nsf page?

Also, is there any special handling/parameter in the javascript when opening a new window of iFrame pages?

oh ya, I forgot to mention that the iFrame is in an external page, so I can't make any changes related to the iFrame.
[ October 10, 2007: Message edited by: vivien siu ]
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sounds like the iframe has a framebreaker script in it.

Eric
 
Bear Bibeault
Sheriff
Posts: 67745
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If there is a frame-breaker script (search for something like "if (window != top)") there's not much you can do. Perhaps you could pass the page through a filter that would remove the script, but that's a bit less than ethical if you don;t have the permission of the originating site.
[ October 11, 2007: Message edited by: Bear Bibeault ]
 
vivien siu
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hehehe, it was solved, turned out that this javascript function openNewWndOrFocusExisting() opens the URL inside a frame! After the frame code is commented out then it worked. =)

didn't find any frame-breaker script inside the iFrame though, but it sure is an eye opener! Thanks!
 
reply
    Bookmark Topic Watch Topic
  • New Topic