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
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


xou can set document.domain to ""

but not to some other domain.

So your question should be

How do I resize my iframe to content height across domains

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.
Michel PlungjanIT ExpertCommented:
you cannot access anything inside a frame containing stuff from another domain
gaurihAuthor Commented:
I didn't get the expected answer.
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.
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.