HighDots Forums  

https frame style

Javascript JavaScript language (comp.lang.javascript)


Discuss https frame style in the Javascript forum.



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

Default https frame style - 11-06-2003 , 03:08 AM






Hi

I have an iframe contained withing a normal frame.
The normal frame is http and the iframe is https.

I need to change the style of the iframe several times while the user
is using it, for example, the height or color or position etc...

If the iframe was http I could do this:

parent.document.getElementById("frameID").style.wh atever = something;

unfortunately because of the iframe being https, javascript cannot
access the parent, and for those of you who are thinking about telling
me to make the container frame https, this is not possible in the
current context.

Is there a way to change a frame's style within that frame?

thank you...

Xavier

Reply With Quote
  #2  
Old   
Thomas 'PointedEars' Lahn
 
Posts: n/a

Default Re: https frame style - 11-12-2003 , 08:29 AM






Xavier Bourguignon wrote:

Quote:
I have an iframe contained withing a normal frame.
The normal frame is http and the iframe is https.
[...]
Is there a way to change a frame's style within that frame?
No, the Same Origin Policy forbids it.


PointedEars


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 - 2008, Jelsoft Enterprises Ltd.