AJAX和IE使用jQueryGet,没有收到响应
我在尝试发出ajax GET请求时遇到问题。我需要弄清楚如何使用XDR将jquery转换为原始方法。这是我的密码。这是我想补充的。我知道在哪里添加它,只是不知道如何或在哪里放置所有变量。以下是我所拥有的:AJAX和IE使用jQueryGet,没有收到响应,jquery,ajax,internet-explorer,Jquery,Ajax,Internet Explorer,我在尝试发出ajax GET请求时遇到问题。我需要弄清楚如何使用XDR将jquery转换为原始方法。这是我的密码。这是我想补充的。我知道在哪里添加它,只是不知道如何或在哪里放置所有变量。以下是我所拥有的: $.post("post.php?"+$("#MYFORM").serialize(), { }, function(response){ if(response==1 && codeVal == 1 && telVa
$.post("post.php?"+$("#MYFORM").serialize(), {
}, function(response){
if(response==1 && codeVal == 1 && telVal == 1)
{
$("#after_submit").html('');
$("#Send").after('<label class="success" id="after_submit">Η αποστολή πραγματοποιήθηκε</label>');
change_captcha();
clear_form();
$.ajax({
type:'GET',
cache: false,
url: "web.something.gr/submit_code.php",
data:{ user: "123456", pass: "123456", source: "WEB", receipt: num, msisdn: phone},
success: function(data) {
var qsFull = "web.something.gr/submit_code.php?" + data;
var qs = URI(qsFull).query(true);
TINY.box.show({html:qs.message,animate:false,boxid:'error',top:5});
},
error: function(data) {
var qsFull = "web.mobilemedia.gr/input/microsoft/submit_code.php?" + data;
var qs = URI(qsFull).query(true);
TINY.box.show({html:qs.message,animate:false,boxid:'error',top:5});
}
});
}
else
{
$("#after_submit").html('');
$("#Send").after('<label class="error" id="after_submit">Error! in CAPTCHA .</label>');
}
});
我真的不认为我使用JSON,只是文本/html,那么我下一步要做什么来实现这一点呢。因为我在其他浏览器上都有这个功能。。这是一个语法错误,我真的需要这个If语句吗?请帮助。应用此代码条款;data.firstChild.textContent在IE中不起作用
if(isIE() && isIE() < 10) {
JSON = $.parseJSON(data.text); }
function isIE() {
var myNav = navigator.userAgent.toLowerCase();
return (myNav.indexOf('msie') != -1) ? parseInt(myNav.split('msie')[1]) : false;}
我找到了答案。请参阅此链接:
if(isIE() && isIE() < 10) {
JSON = $.parseJSON(data.text); }
function isIE() {
var myNav = navigator.userAgent.toLowerCase();
return (myNav.indexOf('msie') != -1) ? parseInt(myNav.split('msie')[1]) : false;}