Re: Referncing a JS generated iframe

Manni <[email protected]> Tue, 16 May 2006 00:46:58 +0200
Newsgroups gmane.comp.web.dom.wdf
Message-ID <[email protected]>
js pan schrieb:
> This approach only works when the client is on the same domain
> as the source page, right ?

As all client scripting (should), yes.

But if they are only on different subdomains, such as i.e. 
http://one.domain.com and http://other.domain.com, you might set the 
document.domain property to enable cross-subdomain scripting.

This must be set in both sub domains to the same domain name. So, in the 
document at one.domain.com, do:

document.domain='domain.com';

Then do the same in the document at other.domain.com and the documents 
can access each other. Caution, this will work only for subdomains.

Cheerio,
Manni


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/9rHolB/TM
--------------------------------------------------------------------~-> 

Unsubscribe
[email protected]

List info
http://www.quirksmode.org/dom/list.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wdf-dom/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/