Note that there are some explanatory texts on larger screens.

plurals
  1. POUncaught SyntaxError: Unexpected token < With $.jsonp and webservices
    primarykey
    data
    text
    <p>I was able to fix my webservice ajax issue with a jquery plugin. called jquery.jsonp.js. now on my success function i am getting a Uncaught </p> <pre><code> SyntaxError: Unexpected token &lt; </code></pre> <p>error on the chrome console window. I have tried various ways to fix this but I am at a loss</p> <pre><code>$.jsonp({ type: "POST", url: "http://localhost:49524/mobile/Android/AndroidWebServices.asmx/CheckLogin", data: "email="+u+"&amp;password="+p, crossDomain:true, success: function (data) { var s = $(data).find('string').text();; alert(s); } }); </code></pre> <p>if there is a better way to get the value from the xml i would greatly appreciate any help</p> <pre><code>&lt;string xmlns="http://wmstec.com/"&gt;true&lt;/string&gt; </code></pre> <p>is the XML file that is returned from the webservice</p> <pre><code> [WebMethod] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public string CheckLogin(string email, string password) { string vid = "xxxx"; //Get the User Information DB.User cur_user = DB.User.ByEmail(email.Trim()); //if it failed, try by screen name if (-1 == cur_user.ID) { cur_user = DB.User.ByScreenName(email.ToLower()); } //Does their password match? if (cur_user.CheckPassword(password, vid)) { // companys ToJSON function return Utility.ToJSON("true"); } else { return Utility.ToJSON(return "false"); } } </code></pre> <p>UPDATE</p> <pre><code>$.ajax({ type : "GET", url: "http://localhost:49524/mobile/Android/AndroidWebServices.asmx/CheckLogin", crossDomain:true, data: "email="+u+"&amp;password="+p,//({ email: u, password: p}), dataType :"jsonp", contentType: "application/json; charset=utf-8", success : function(data){ alert(data);} }); </code></pre> <p>returns the same thing.. so its not necessarily the jsonp plugin that is an issue.. its obviously a user issue lol..</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload