TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Nimit Joshi
NA
26.9k
14.5m
jQuery- Success function is not working
Jun 11 2014 4:40 AM
I have developed an application in which i am inserting the data by using the service. The data is inserted successfully but the problem is it is not showing the alert which is inside the success function.
My jquery code:
$(document).ready(
function
() {
$(
'#BtnRegister'
).click(
function
() {
$.ajax({
type:
"POST"
,
url:
"DataService.svc/InsertData"
,
data:
'{ "Name": "'
+ $(
"#TxtUserName"
).val() +
'",
"Email" : "'
+ $(
"#TxtUserEmail"
).val() +
'",
"Category" : "'
+ $(
"#TxtUserCategory"
).val() +
'",
"Mobile" : "'
+ $(
"#TxtUserMobile"
).val() +
'",
"Message" : "'
+ $(
"#message"
).val() +
'" }'
,
contentType:
"application/json; charset=utf-8"
,
success:
function
(data) {
alert(
"data"
);
},
error:
function
() { alert(
'Loading Failed...'
); }
});
});
});
The error function is running every time
Reply
Answers (
7
)
How to decode qr code in asp.net web application
how to decode qr code in asp.net using web cam