javascript - Response not getting using ajax -
when send email , password , method. time email pass username=userabig%40bizchatbox.org. have faced issue response. please me how can fix @ when sending email response using ajax.
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> <script type="text/javascript"> $("document").ready(function(){ $.ajax({ type: "post", url: "http://108.161.137.197:8088", data: { "method": "getauthtoken", "username": "userabig@bizchatbox.org", "password": "pass" }, mimetype:"multipart/form-data", contenttype: false, cache: false, success: function(data) { alert(data); } }); return false; }); </script>
thanks in advance
getting below response ajax.
{ "error":"no rest method found" }
which means server not able find method url
.
change url
appropriate 1 looking server code.
http://108.161.137.197:8088
to below verifying server code
http://108.161.137.197:8088/myproject/login or http://108.161.137.197:8088/login
Comments
Post a Comment