JQuery UI Dialog + Ajax Error with IE 6-7-8

I have a problem with jQuery-ui Dialog when using ajax

$.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"); }}); 

when using IE ajax never succeeds by mistake I got

"This method cannot be called until the public method is called."

This only happens in IE.

Can anyone know what could be the problem?

(all the vars are fine and work fine in FF and chrome)

thanks.


after ala ajax validation doesn't work with IE at all

I tried

$. Ajax ({url: 'movies.php', data: "do = UpdateMovies & _a = SetStatus", success: function (data) {warning ('something');

  }}); 

inside the function, no vars, I tried this as in

http://api.jquery.com/jQuery.ajax/

and just do not run it, any help will be described

+4
source share
2 answers

There is a conflict between jQuery 1.4 and Sarissa.

Is sarissa.js enabled on the page?

Related posts:

https://jira.jboss.org/jira/browse/RF-8282

http://code.google.com/p/google-web-toolkit/issues/detail?id=3608

http://code.google.com/p/jstree/issues/detail?id=430

This change to Sarissa seems to work.

 // _SARISSA_XMLHTTP_PROGID = Sarissa.pickRecentProgID(["Msxml2.XMLHTTP.6.0", "MSXML2.XMLHTTP.3.0", "MSXML2.XMLHTTP", "Microsoft.XMLHTTP"]); _SARISSA_XMLHTTP_PROGID = Sarissa.pickRecentProgID(["MSXML2.XMLHTTP", "Microsoft.XMLHTTP"]); 
+7
source

Have we tried the developer tools in IE to go through your code and see what is running and what are the values โ€‹โ€‹of the variables? IE 8 has a large set of tools built right in by pressing F12.

Working with Internet Explorer Developer Tools

0
source

Source: https://habr.com/ru/post/1302668/


All Articles