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
SIVA
NA
742
708.5k
How to call webservice through JQuery
Jun 7 2012 8:20 AM
Hi all,
<script type = "text/javascript">
function DisplayMessageCall() {
var pageUrl = '<%=ResolveUrl("http://192.168.141.43//MCHWebservice//CallService.asmx")%>'
$.ajax({
type: "Get",
url: pageUrl + "/TestHTML",
data: '{}',
contentType: "application/json; charset=utf-8",
dataType: "json",
success: OnSuccessCall,
error: OnErrorCall
});
}
function OnSuccessCall() {
alert("success");
}
function OnErrorCall(response) {
alert("Failure");
}
Here,
I am trying to call TestHTML method, which returns the values in the format of XML.
and i am trying to run the above code but everytime i am getting failure message.
Reply
Answers (
4
)
Validation related to the dropdownlist in jquery
need Some Help in implementing Jquery images slideshow in My Application