AndroidQueryAjax不';当页面包含IFRAME时,不要调用php页面
我尝试使用以下代码访问我的PHP页面:AndroidQueryAjax不';当页面包含IFRAME时,不要调用php页面,android,android-query,Android,Android Query,我尝试使用以下代码访问我的PHP页面: String url = "http://mypage.example.com/test.php?name="+data; aq.ajax(url, String.class, new AjaxCallback<String>() { @Override public void callback(String url, String html, AjaxStatus status) { Log.w(Tags.D
String url = "http://mypage.example.com/test.php?name="+data;
aq.ajax(url, String.class, new AjaxCallback<String>() {
@Override
public void callback(String url, String html, AjaxStatus status) {
Log.w(Tags.DEBUG,String.valueOf(status.getCode()));
}
});
stringurl=”http://mypage.example.com/test.php?name=“+数据;
ajax(url,String.class,新的AjaxCallback(){
@凌驾
公共无效回调(字符串url、字符串html、AjaxStatus状态){
Log.w(Tags.DEBUG,String.valueOf(status.getCode());
}
});
如果进行了调用,我的PHP页面将写入一个文件。当我在浏览器中使用URL时,会创建文件。当我使用Android应用程序时,什么也没发生,状态码是200。我还应该设置什么
更新:
我的页面的来源:
<html>
<head>
<title>MY WEBSITE</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<frameset rows="92, *" frameborder=NO border=1 framespacing=0 cols=*>
<frame name="topFrame" scrolling=NO noresize src="http://example.com/ads.php?ad=user12&cat=16" frameborder=NO>
<frame name="user" src="http://example.com/user12/test.php" scrolling=auto>
</frameset>
<noframes>
<body bgcolor=#FFFFFF text=#000000>
<a href="http://example.com/user12/test.php">http://example.com/user12/test.php</a>
</body>
</noframes>
</html>
我的网站
似乎是网页出了问题,它发回了源代码,里面有一个IFRAME