我在使用 ajax 时遇到了 jQuery-ui 对话框的问题
$.ajax({
url: "folders.php",
cache: false,
data: {
'do' : 'Ajax'
,'_a' : 'ChangeMoviesFolder'
,'MovieIDS' : MovieIDS
,'toFolderID' : toFolderID
,'fromFolderID' : fromFolderID
},
context: document.body,
open: function(event, ui) {
alert('open');
},
error : function(XMLHttpRequest, textStatus, errorThrown){
// Handle the beforeSend event
// alert("responseText: "+errorThrown.message);
},
success: function(data){
$('input.checkMovie').attr('checked',0);
$("#resultsTable").find('tr.selectable-row').removeClass('active');
if (data == '1')
{
window.location = WWW_ROOT+'movies.php?do=List&FolderID='+toFolderID;
}
$dialog.dialog("close");
}});
当使用 IE ajax 时,我得到了错误的成功选项
“在调用 open 方法之前无法调用此方法”
它只发生在 IE 中。
有谁可能知道问题可能是什么?
(所有变量都可以,并且在 FF 和 chrome 中完美运行)
谢谢。
经过大量检查 ajax 根本无法与 IE 一起使用
我试过了
$.ajax({ url: 'movies.php', data: "do=UpdateMovies&_a=SetStatus", 成功: function(data){ alert('something');
}});
在函数内部,没有变量,我已经尝试过,就像在
http://api.jquery.com/jQuery.ajax/
它只是不执行任何帮助将被应用