URGENT! DesignMode = "on" and Document Domain

G

Gaspar

I need a solution to a problem that I couldn't resolve in the past two days!

SCENARIO:
Static "Page A" has an "iframe X" that is set to DesignMode = "on" to allow
interactive editing.

PROBLEM :
If PageA.document.domain is set to a value different than the default value
(suppose my host is www.mydomain.com and document.domain = 'mydomain.com') I
can't access Page B (access denied).

To solve this problem I load a temporary page in iframe X that sets
document.domain = 'mydomain.com'. Then, I can access iframe X contents UNTIL
I set DesignMode = on. Then, the iframe is inaccesible (access denied).
Somehow, enabling designMode, is unsetting document.domain to allow
cross-frame interaction.

Thanks for you help!
Gaspar

PS: I'm using IE6
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top