javascript - chrome: problem with iframe's parent
Hi!
I'm developing an application on phonegap and running it on android. I want to send a meesage to a page from a double-nested iframe. On Android 2.2 it works if I do this: Code:
parent.parent.postMessage('whatever', '*'); |
I just performed a very simple test. I tested if window == parent. On 2.2 it's not the same... on 4.0 it is the same. Does it make any sense?
|
How interesting:
http://productforums.google.com/foru...me/KXWxXF6RJZY Is it because a phonegap application runs locally? Ugh! Is there a workaround for this? |
I had tried a very small application with an iframe that sent a message to its parent. I tested it running in apache from android's browser and it works. I just tested it from inside phonegap and it fails.... so I guess "running locally" is to blame here. So.... is there a workaround? perhaps changing something in the manifest?
|
All times are GMT -5. The time now is 06:21 PM. |