Java 在Phonegap中使用时,iframe parent.function()调用未定义
大家好,提前谢谢你们的帮助。以下是我的情况: 我已经安装了Phonegap 0.9.5,我正在Eclipse中制作一个应用程序。我的Phonegap应用程序的app assets/www/index.html中的所有设置都很好:Java 在Phonegap中使用时,iframe parent.function()调用未定义,java,javascript,android,iframe,cordova,Java,Javascript,Android,Iframe,Cordova,大家好,提前谢谢你们的帮助。以下是我的情况: 我已经安装了Phonegap 0.9.5,我正在Eclipse中制作一个应用程序。我的Phonegap应用程序的app assets/www/index.html中的所有设置都很好: <iframe id='downloader' frameborder='0' style='width:100%' src='http://www.myste.com/mobile/index.html'></iframe> 有人能帮我吗?应
<iframe id='downloader' frameborder='0' style='width:100%' src='http://www.myste.com/mobile/index.html'></iframe>
有人能帮我吗?应该像window.top.location.href?应该像window.top.location.href?这是iframe的父项在不同的域或子域上吗?父项是Phonegap的assets/www/index.html,iframe从哪里加载?Phonegap的assets/www/index.html。奇怪,不确定。我会先在phonegap之外尝试,以排除变量,然后如果可行,将其放入phonegap。这是iframe的父项在不同的域或子域上吗?父项是phonegap的assets/www/index.html,iframe从何处加载?phonegap的assets/www/index.html。奇怪,不确定。我会在phonegap之外尝试,首先排除变量,然后如果可行,将其放入phonegap。
<input style="position:relative;top:200px;z-index:5;" type="button" onclick="alert(parent.location.href)" value="DOES MOM EXIST?" />';
onclick="parent.somefunction();"