Communication between parent and iframe not working

Steve Elmore's Avatar

Steve Elmore

09 Aug, 2017 01:38 AM

I have a site that I'm trying to set up as an iPhone website.... user will use iPhone or PC browser to access the website, but screens are designed for iPhone. The format is a small parent page and a large iframe where most of the activity occurs. All of the content comes from the same site. In the real world, the iframe content can call JS functions in the parent and store values in JS variables in the parent. Works fine every time.

In the emulator, nothing happens. The JS code of the page in the iframe is not run. It's as though the iframe content is assumed to be a foreign site and is ignored (except for basic html functionality).

Is this a known problem? Is there a workaround that will enable the iframe content to run normally?

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac