You have a couple of options:
Scope the domain down (see document.domain) in both the containing page and the iframe
to the same thing. Then they will not be bound by 'same origin' constraints.
Use postMessage which is supported by all HTML5 browsers for cross-domain
communication.