I get this error: Protocols, domains, and ports must match Iframe has this domain and protocol: http:// www-ec65nhg76pg.mysite.com/ and Parent has this domain and protocol: http:// www.mysite.com/ I have used document.domain='mysite.com' in my web part but it didn't work. Is there any way to solve this problem?
Is it a regular visual web part inside a WebPartZone? Usually you can access everything rendered in the page without navigating into parent/sibling/child stuff.
You are trying to do it with JS? The WebPart is in another domain and referenced with an Iframe?