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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.