HighDots Forums  

Re: Iframe ReturnValue returns undefined if domains are not the same

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


Discuss Re: Iframe ReturnValue returns undefined if domains are not the same in the JavaScript discussion (multi-lingual) forum.



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

Default Re: Iframe ReturnValue returns undefined if domains are not the same - 07-29-2005 , 12:31 PM







"Silver Arrow" <SilverArrow1 (AT) voila (DOT) fr> wrote

Iframe ReturnValue returns undefined if domains are not the same

I am using a modal window and an iFrame to try and pull a return value
back.
IMPORTANT : I am doing this across domains.
Main app: http://webSite1.domain.com/mainApplication
Other app call in ModalWindow:
http://webSite2.domain.com/mainApplication

I have the value returned from the modal window to the iFrame window
but I can not get the value returned to the parent window. The alert
in the parent window always returns undefined errors. Any help would
be much appreciated.

If the domains are completely different I don't think it can be done with
changing the "access data sources across domains" in the security settings, and
even then it may not work.
If the domains are as you wrote then you can set the document.domain property if
you can alter the page source.

http://msdn.microsoft.com/library/de...asp?frame=true


--

Joe (MVP)

https://mvp.support.microsoft.com/pr...8-8741D22D17A5



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.