json - Ajax request Syntax issue -
here code in sencha receiving json data, problem when call shows error message because of syntax.i dont know fails coz im new sencha,here code
ext.ajax.request({ url: 'http://117.218.59.157:8080/wishlist/login', method: 'post', headers: { 'content-type': 'application/json;' }, jsondata:{ username : "faz@gmail.com", emailid : "faz" }, success: function (response) { alert(response.responsetext); }, failure: function (response) { alert(response.responsetext); } });
when above method calls showing following response
<html><head><title>apache tomcat/7.0.14 - error report</title><style><!--h1 {font- family:tahoma,arial,sans-serif;color:white;background-color:#525d76;font-size:22px;} h2 {font-family:tahoma,arial,sans-serif;color:white;background-color:#525d76;font- size:16px;} h3 {font-family:tahoma,arial,sans-serif;color:white;background- color:#525d76;font-size:14px;} body {font-family:tahoma,arial,sans- serif;color:black;background-color:white;} b {font-family:tahoma,arial,sans- serif;color:white;background-color:#525d76;} p {font-family:tahoma,arial,sans- serif;background:white;color:black;font-size:12px;}a {color : black;}a.name {color : black;}hr {color : #525d76;}--></style> </head><body><h1>http status 404 - </h1><hr size="1" noshade="noshade"><p><b>type</b> status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>the requested resource () not available.</u></p><hr size="1" noshade="noshade"><h3>apache tomcat/7.0.14</h3></body></html>
i call json url in fiddler in following format
method: post url: http://117.218.59.157:8080/wishlist/login request: { "emailid": "xy@gmail.com", "password": "ganesh" } response: [ { "response": "success" } ]
i dont know code fails .please me sort out
http status 404 means "resource not found." server @ 117.218.59.157:8080 isn't configured serve resource on path /wishlist/login
. you'll have @ server configuration/code figure out why is. note http servers case-sensitive, , (for instance) wishlist
, wishlist
may not same thing server.
Comments
Post a Comment