Click here to Skip to main content
15,891,930 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This is the Ajax codes the following return an error message for some reason; I read online on the cross sit scripting but i wasn't able to make sense of it and how it affects Ajax in JQuery mobile app
HTML
$.ajax({
                   url: "localhost:90/wizzy/php/main.php",
                   type: "POST",
                   dataType: "text",
                   crossDomain: true,
                   data: {tag:"1"},
                   dataType: "text",
                   contentType: 'application/json',
                   mimeType: 'application/json',
                   cache: false,
                   success: function(response, status){alert("hhh");},
                   error:  function(XMLHttpRequest, textStatus, errorThrown){
                        alert("textStatus:"+textStatus+",errorThrown:"+errorThrown+",XMLHttpRequest:"+XMLHttpRequest);}
               });


The particular error itself can not be determined all that is shown is the alert box in the error function and no error message comes with it
Posted
Updated 15-Dec-14 10:40am
v4
Comments
Kornfeld Eliyahu Peter 15-Dec-14 16:29pm    
Can you share with us the error message?
ZurdoDev 15-Dec-14 16:39pm    
Need the error. Examine the variables in your error function.
daviestobialex 15-Dec-14 16:48pm    
the textStatus shows error, errorthrown is null and the XMLHttpRequest is [Object Object]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900