I ran into a pretty nasty problem in my cordova / ionic app for a Windows phone. Since all external scripts are blocked by the Windows Phone cordova platform, I cannot enable and use goj js api cards. I read some problems here and looked for the problem, and found out that you can include external scripts in the iframe and use the form here. Did it, works great. However, I would like to use google maps api from my parent frame. I tried passing the google variable from iframe to the top frame by assigning:
parent.google = google
This gives me an access denied error due to the excessive security of mumbo jumbo in IE. Then I tried to assign document.domain something the same for the parent and child frames, but this causes a JS error. I can not use postMessage, as methods in google will not be stringify'ed.
My question is: is there a way to pass google to my top frame as an object in IE?
source
share