Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/424.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 在Phonegap中使用时,iframe parent.function()调用未定义_Java_Javascript_Android_Iframe_Cordova - Fatal编程技术网

Java 在Phonegap中使用时,iframe parent.function()调用未定义

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> 有人能帮我吗?应

大家好,提前谢谢你们的帮助。以下是我的情况:

我已经安装了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>

有人能帮我吗?

应该像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();"