HighDots Forums  

Removing Frames

JavaScript discussion (multi-lingual) JavaScript discussion (alt.comp.lang.javascript)


Discuss Removing Frames in the JavaScript discussion (multi-lingual) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sean
 
Posts: n/a

Default Removing Frames - 07-21-2009 , 05:59 AM






I have a page where I need to display the contents in two frames ('topFrame'
and 'bottomFrame'). The contents of 'bottomFrame' are provided by a client
and are on a different domain from the domain that contains the frameset
page.



I need the option of having the user break out of the frames at any point in
order to show the content of 'bottomFrame' out of the frameset. I have a
link on 'topFrame' to do this in Javascript i.e:



<a href="javascript:top.location.href=top.frames(1).l ocation.href;">Remove
frame</a>



This works fine when 'bottomFrame' is displaying a page within the domain
containing the frameset but fails to work when 'bottomFrame' contains the
contents of the clients page (i.e. client page on a different domain) or
any page from a different domain. A permission denied error occurs.



I know frames are the work of the devil but I really need to use them in
this instance.



Any ideas how I can get around this please?

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.