P.S. alert(y) gives Not Found alert(z) gives SyntaxError: JSON.parse
Where do i find out what x y and z are? Thanks! On Mar 4, 3:52 pm, Jon <cakeordeat...@gmail.com> wrote: > That's great! Thanks! > > Here's the error: > [object XMLHttpRequest] > > What does that mean. I'm confused... I thought the plugin worked via > JSON... > > On Mar 4, 3:41 pm, MorningZ <morni...@gmail.com> wrote: > > > Show what the error is > > > error: function(x, y, z) { > > alert(x); > > > } > > > should show you what the error actually is instead of guessing > > > On Mar 4, 10:10 am, Jon <cakeordeat...@gmail.com> wrote: > > > > I'm trying to get the ajax dot net plugin working and failing > > > miserably. > > > > I've added the service - both manually and by dragging the example > > > files into my solution. > > > I've copied the hello world function from the example solution and > > > added it to the service and the jquery for it. > > > I've copied the system.serviceModel into my web.config. Again, i've > > > tried using the default one created when adding the service to the > > > solution and i've copied it across from the example solution. > > > > But no matter what i do i can't get the ajax to work. > > > > // Hello World > > > $.ajaxDotNet(url + "HelloWorld", { > > > verb: "GET", > > > success: function(obj) { > > > obj = obj.d; > > > alert('Hello World'); > > > $(".HelloWorld").text(obj); > > > }, > > > error: function() { > > > alert('Hello Error'); > > > $(".HelloWorld").text("Error"); > > > } > > > }); > > > > Every time i run it i just get the Hello Error alert. > > > > Does anyone know if i'm missing something essential? Am i making a > > > stupid error? > > > > Please help, i'm dying to get this plugin working! And if i can't get > > > this working does anyone else has any experience with JQuery and Dot > > > Net and might be able to point me to a solution?