ie加载不了ajax,Ajax无法在IE中加载

以下是脚本。它在所有其他浏览器中工作正常,所以我认为这是一个缓存问题,但不是真的。我几个小时一直在敲我的头,没有任何工作。Ajax无法在IE中加载

$.ajaxSetup({

cache: false

});

$("#send").live('click', function() {

console.log("AAAAA");

$("#loader").show();

$form = $('#reservationForm');

$inputs = $form.find('input[name^="entry"]'),

serializedData = $('#reservationForm :input[name^="entry"]').serialize();

console.log(serializedData);

serializedData += "&pageNumber=0&backupCache=1&submit=Submit";

// fire off the request to /form.php

$.ajax({

url: "https://docs.google.com/spreadsheet/formResponse?formkey=d",

// url: "https://docs.google.com/spreadsheet/formResponse?formkey=d;ifq",

type: "post",

data: serializedData,

// callback handler that will be called on success

success: function (response, textStatus, jqXHR) {

// log a message to the console

console.log("Hooray, it worked!");

$("#loader").hide();

document.getElementById('error<?php echo"$uname";?>').innerHTML = error;

$("#success").fadeIn();

setTimeout(function() {

$("#success").fadeOut();

}, 5000);

},

// callback handler that will be called on error

error: function (jqXHR, textStatus, errorThrown) {

// log the error to the console

console.log("The following error occured: " + textStatus, errorThrown);

alert('Due to an unknown error, your form was not submitted, please resubmit it or try later.');

},

// callback handler that will be called on completion

// which means, either on success or error

complete: function() {

// enable the inputs

$inputs.removeAttr("disabled");

}

});

// prevent default posting of form

event.preventDefault();

});

2012-12-01

emuigai

+0

我已经为您的javascript读取和删除missplaced“ –

+0

可以考虑尝试代码我编辑的方式 –

+0

,你可以发布你的HTML代码 –

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值