[Mono-aspnet-list] How can I consume a web service with javascript and jquery?

LucaDev lucaserci at gmail.com
Fri Aug 5 02:51:02 EDT 2011

This is the javascript code. The other was wrong, sorry

$(document).ready(function () {
                type: "POST",
                url: "DataService.asmx/SayHello",
                data: "{}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function () { alert("Ok"); },
                error: function () { alert("Error"); }

View this message in context: http://mono.1490590.n4.nabble.com/How-can-I-consume-a-web-service-with-javascript-and-jquery-tp3719799p3720570.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.

More information about the Mono-aspnet-list mailing list