Tech
Forums
Jobs
Books
Events
Live
Interviews Prep
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
0
Reply
Uncaught SyntaxError: Unexpected token : in jquery with webs
guna bathina
Nov 5 2017 7:48 AM
297
Reply
when am trying aceess a webservice remotely am getting Uncaught SyntaxError: Unexpected token error but service works properly and returns output as aURL
http://localhost:53830/sample.asmx/getPinnumber?callback=jQuery31105488972800365737_1509872462552&mobileNumber=9030733573&Imei=123456789012345&_=1509872462553
O/P:
{"Status":200,"Response":"1234"}
jquerycode:
$.ajax({
type:
"GET"
,
url:
"http://localhost:53830/sample.asmx/getPinnumber"
,
contentType:
"application/json; charset=utf-8"
,
data: { mobileNumber: 9030733573, Imei:
"123456789012345"
},
dataType:
"jsonp"
,
success:
function
(json) {
alert(json.d);
},
error:
function
() {
alert(
"Hit error fn!"
);
}
});
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
Auto-Complete People Picker In SharePoint Using Jquery
how can create people Picker ?