Document.domain acessing 3rd party domain in iframe

Hi Experts,

I am calling 3rd party url inside the iframe in my page and I wanted to have detect the document height of the iframe,hence used document.domain functionality to set the domain.
As I am using document.domain, I am getting History Manager error in IE7. This is implemented by YUI2.7 version.

Can anyone please help with good solution
Thanks
gaurihAsked:
Who is Participating?
 
Michel PlungjanIT ExpertCommented:
You cannot set document.domain to anything that is not matching the high level domain of the script.

So in

xxx.mydomain.com

and

yyy.mydomain.com

xou can set document.domain to "mydomain.com"

but not to some other domain.

So your question should be

How do I resize my iframe to content height across domains

0
 
gaurihAuthor Commented:
I don't want to resize the iframe, I just gave example to get the heandle of the document inside the iframe. The main concern is if I access the subdomain content in the iframe, getting history Manager error.
0
 
Michel PlungjanIT ExpertCommented:
you cannot access anything inside a frame containing stuff from another domain
0
 
gaurihAuthor Commented:
I didn't get the expected answer.
0
 
Michel PlungjanIT ExpertCommented:
I didn't get enough info from you to give you a better answer and even then the answer I would give might not be the one you wanted to hear.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.