[jQuery] Re: Ajax Dot Net Plugin

2009-03-06 Thread Jon

I've been trying to solve this and i just cannot find the solution.

The service is a WCF Service - .svc if that effects anything? There is
definitely no authentication on the application. It's off in
web.config.

I have tried everything i can find - including reinstalling IIS. After
doing that i get a new error message which is essentially the content
of my Service.svc file:
<%@ ServiceHost Language="C#" Debug="true" Service="Service"
CodeBehind="~/App_Code/Service.cs" %>

I'm out of my depth here - i have no idea what is going on!



On Mar 4, 5:33 pm, Joseph Le Brech  wrote:
> can you test your webservice?
>
> Put a breakpoint to see what it is inserting into the SOAP object.
>
> That's one thing i do not like about the asp.net service thing is their 
> insistance on wrapping json inside a SOAP object, it's like sticking binary 
> inside XML.
>
>
>
> > Date: Wed, 4 Mar 2009 09:13:02 -0800
> > Subject: [jQuery] Re: Ajax Dot Net Plugin
> > From: cakeordeat...@gmail.com
> > To: jquery-en@googlegroups.com
>
> > I'm afraid i don't have the JSON handy. Being new to this i'm not sure
> > how to get to that layer yet!
>
> > Anyway when i do alert(x.responseText)
>
> > I get:
>
> >  The resource cannot be found. 
>
> > [HttpException]: The file '/service.svc/helloworld/CMSLogin.aspx' does
> > not exist.
>
> > at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath
> > virtualPath)
>
> > (this is the most pertinent part and a larger error that i don't want
> > to clog the thread with)
>
> > Obviously /service.svc/helloworld is what should get sent however i
> > don't understand how my CMSLogin.aspx page has gotten added on there!
> > Dot net forms authentication perhaps? Though i'm not redirecting
> > anything at this point...
>
> > Here's the javascript function again:
> > // Hello World
> > $.ajaxDotNet("/Service.svc/HelloWorld", {
> > verb: "GET",
> > success: function(obj) {
> > obj = obj.d;
> > alert('Hello World');
> > $(".HelloWorld").text(obj);
> > },
> > error: function(x, y, z) {
> > alert(x.responseText);
> > alert(y.responseText);
> > alert(z.responseText);
> > }
> > });
>
> > Additionally y.responseText and z.responseText come out as undefined.
>
> > Again, i'm miffed!
>
> > On Mar 4, 4:57 pm, Joseph Le Brech  wrote:
> > > Do you have the json handy??
>
> > >http://www.jsonlint.com/
>
> > > Paste the output in here to see if its valid json?
>
> > > is it generated from a asp service?
>
> > > > Date: Wed, 4 Mar 2009 08:24:52 -0800
> > > > Subject: [jQuery] Re: Ajax Dot Net Plugin
> > > > From: morni...@gmail.com
> > > > To: jquery-en@googlegroups.com
>
> > > > he's got the error, which is:
>
> > > > SyntaxError: JSON.parse
>
> > > > and sorry about my last post
>
> > > > alert(x.responseText) will show the error text (as will Firebug as
> > > > mentioned about)
>
> > > > anyways, the error your getting is that it seems that your ASP.NET
> > > > code can't parse the results to JSON
>
> > > > On Mar 4, 11:02 am, Joseph Le Brech  wrote:
> > > > > get firebug and put a breakpoint on for the line for error.
>
> > > > > > Date: Wed, 4 Mar 2009 07:58:45 -0800
> > > > > > Subject: [jQuery] Re: Ajax Dot Net Plugin
> > > > > > From: cakeordeat...@gmail.com
> > > > > > To: jquery-en@googlegroups.com
>
> > > > > > 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  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  wrote:
>
> > > > > > > > Show what the error is
>
> > > > > > > > error: function(x, y, z) {
> > > > > > > 

[jQuery] Re: Ajax Dot Net Plugin

2009-03-04 Thread Joseph Le Brech

can you test your webservice?

 

Put a breakpoint to see what it is inserting into the SOAP object.

 

That's one thing i do not like about the asp.net service thing is their 
insistance on wrapping json inside a SOAP object, it's like sticking binary 
inside XML.


 
> Date: Wed, 4 Mar 2009 09:13:02 -0800
> Subject: [jQuery] Re: Ajax Dot Net Plugin
> From: cakeordeat...@gmail.com
> To: jquery-en@googlegroups.com
> 
> 
> I'm afraid i don't have the JSON handy. Being new to this i'm not sure
> how to get to that layer yet!
> 
> Anyway when i do alert(x.responseText)
> 
> I get:
> 
>  The resource cannot be found. 
> 
> [HttpException]: The file '/service.svc/helloworld/CMSLogin.aspx' does
> not exist.
> 
> at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath
> virtualPath)
> 
> (this is the most pertinent part and a larger error that i don't want
> to clog the thread with)
> 
> Obviously /service.svc/helloworld is what should get sent however i
> don't understand how my CMSLogin.aspx page has gotten added on there!
> Dot net forms authentication perhaps? Though i'm not redirecting
> anything at this point...
> 
> Here's the javascript function again:
> // Hello World
> $.ajaxDotNet("/Service.svc/HelloWorld", {
> verb: "GET",
> success: function(obj) {
> obj = obj.d;
> alert('Hello World');
> $(".HelloWorld").text(obj);
> },
> error: function(x, y, z) {
> alert(x.responseText);
> alert(y.responseText);
> alert(z.responseText);
> }
> });
> 
> 
> Additionally y.responseText and z.responseText come out as undefined.
> 
> Again, i'm miffed!
> 
> On Mar 4, 4:57 pm, Joseph Le Brech  wrote:
> > Do you have the json handy??
> >
> > http://www.jsonlint.com/
> >
> > Paste the output in here to see if its valid json?
> >
> > is it generated from a asp service?
> >
> >
> >
> > > Date: Wed, 4 Mar 2009 08:24:52 -0800
> > > Subject: [jQuery] Re: Ajax Dot Net Plugin
> > > From: morni...@gmail.com
> > > To: jquery-en@googlegroups.com
> >
> > > he's got the error, which is:
> >
> > > SyntaxError: JSON.parse
> >
> > > and sorry about my last post
> >
> > > alert(x.responseText) will show the error text (as will Firebug as
> > > mentioned about)
> >
> > > anyways, the error your getting is that it seems that your ASP.NET
> > > code can't parse the results to JSON
> >
> > > On Mar 4, 11:02 am, Joseph Le Brech  wrote:
> > > > get firebug and put a breakpoint on for the line for error.
> >
> > > > > Date: Wed, 4 Mar 2009 07:58:45 -0800
> > > > > Subject: [jQuery] Re: Ajax Dot Net Plugin
> > > > > From: cakeordeat...@gmail.com
> > > > > To: jquery-en@googlegroups.com
> >
> > > > > 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  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  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  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

[jQuery] Re: Ajax Dot Net Plugin

2009-03-04 Thread MorningZ

It appears that you are trying to hit an asmx file that is protected
by ASP.NET Authentication...

either exclude it from needing to be logged in (using web.config), or
make sure on the page that the JSON call is happening is a logged on
user



On Mar 4, 12:13 pm, Jon  wrote:
> I'm afraid i don't have the JSON handy. Being new to this i'm not sure
> how to get to that layer yet!
>
> Anyway when i do alert(x.responseText)
>
> I get:
>
>    The resource cannot be found. 
>
> [HttpException]: The file '/service.svc/helloworld/CMSLogin.aspx' does
> not exist.
>
>    at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath
> virtualPath)
>
> (this is the most pertinent part and a larger error that i don't want
> to clog the thread with)
>
> Obviously /service.svc/helloworld is what should get sent however i
> don't understand how my CMSLogin.aspx page has gotten added on there!
> Dot net forms authentication perhaps? Though i'm not redirecting
> anything at this point...
>
> Here's the javascript function again:
> //      Hello World
>     $.ajaxDotNet("/Service.svc/HelloWorld", {
>         verb: "GET",
>         success: function(obj) {
>             obj = obj.d;
>             alert('Hello World');
>             $(".HelloWorld").text(obj);
>         },
>         error: function(x, y, z) {
>             alert(x.responseText);
>             alert(y.responseText);
>             alert(z.responseText);
>         }
>     });
>
> Additionally y.responseText and z.responseText come out as undefined.
>
> Again, i'm miffed!
>
> On Mar 4, 4:57 pm, Joseph Le Brech  wrote:
>
> > Do you have the json handy??
>
> >http://www.jsonlint.com/
>
> > Paste the output in here to see if its valid json?
>
> > is it generated from a asp service?
>
> > > Date: Wed, 4 Mar 2009 08:24:52 -0800
> > > Subject: [jQuery] Re: Ajax Dot Net Plugin
> > > From: morni...@gmail.com
> > > To: jquery-en@googlegroups.com
>
> > > he's got the error, which is:
>
> > > SyntaxError: JSON.parse
>
> > > and sorry about my last post
>
> > > alert(x.responseText) will show the error text (as will Firebug as
> > > mentioned about)
>
> > > anyways, the error your getting is that it seems that your ASP.NET
> > > code can't parse the results to JSON
>
> > > On Mar 4, 11:02 am, Joseph Le Brech  wrote:
> > > > get firebug and put a breakpoint on for the line for error.
>
> > > > > Date: Wed, 4 Mar 2009 07:58:45 -0800
> > > > > Subject: [jQuery] Re: Ajax Dot Net Plugin
> > > > > From: cakeordeat...@gmail.com
> > > > > To: jquery-en@googlegroups.com
>
> > > > > 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  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  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  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 serv

[jQuery] Re: Ajax Dot Net Plugin

2009-03-04 Thread Jon

I'm afraid i don't have the JSON handy. Being new to this i'm not sure
how to get to that layer yet!

Anyway when i do alert(x.responseText)

I get:

   The resource cannot be found. 

[HttpException]: The file '/service.svc/helloworld/CMSLogin.aspx' does
not exist.

   at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath
virtualPath)

(this is the most pertinent part and a larger error that i don't want
to clog the thread with)

Obviously /service.svc/helloworld is what should get sent however i
don't understand how my CMSLogin.aspx page has gotten added on there!
Dot net forms authentication perhaps? Though i'm not redirecting
anything at this point...

Here's the javascript function again:
//  Hello World
$.ajaxDotNet("/Service.svc/HelloWorld", {
verb: "GET",
success: function(obj) {
obj = obj.d;
alert('Hello World');
$(".HelloWorld").text(obj);
},
error: function(x, y, z) {
alert(x.responseText);
alert(y.responseText);
alert(z.responseText);
}
});


Additionally y.responseText and z.responseText come out as undefined.

Again, i'm miffed!

On Mar 4, 4:57 pm, Joseph Le Brech  wrote:
> Do you have the json handy??
>
> http://www.jsonlint.com/
>
> Paste the output in here to see if its valid json?
>
> is it generated from a asp service?
>
>
>
> > Date: Wed, 4 Mar 2009 08:24:52 -0800
> > Subject: [jQuery] Re: Ajax Dot Net Plugin
> > From: morni...@gmail.com
> > To: jquery-en@googlegroups.com
>
> > he's got the error, which is:
>
> > SyntaxError: JSON.parse
>
> > and sorry about my last post
>
> > alert(x.responseText) will show the error text (as will Firebug as
> > mentioned about)
>
> > anyways, the error your getting is that it seems that your ASP.NET
> > code can't parse the results to JSON
>
> > On Mar 4, 11:02 am, Joseph Le Brech  wrote:
> > > get firebug and put a breakpoint on for the line for error.
>
> > > > Date: Wed, 4 Mar 2009 07:58:45 -0800
> > > > Subject: [jQuery] Re: Ajax Dot Net Plugin
> > > > From: cakeordeat...@gmail.com
> > > > To: jquery-en@googlegroups.com
>
> > > > 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  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  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  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?
>
> > > _
> > > All your Twitter and other social updates in one 
> > > placehttp://clk.atdmt.com/UKM/go/137984870/direct/01/
>
> _
>  25GB of FREE Online Storage – Find out 
> morehttp://clk.atdmt.com/UKM/go/134665320/direct/01/


[jQuery] Re: Ajax Dot Net Plugin

2009-03-04 Thread Jon

I'm afraid i don't have the JSON handy. Being new to this i'm not sure
how to get to that layer yet!

Anyway when i do alert(x.responseText)

I get:

   The resource cannot be found. 

[HttpException]: The file '/service.svc/helloworld/CMSLogin.aspx' does
not exist.

   at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath
virtualPath)

(this is the most pertinent part and a larger error that i don't want
to clog the thread with)

Obviously /service.svc/helloworld is what should get sent however i
don't understand how my CMSLogin.aspx page has gotten added on there!
Dot net forms authentication perhaps? Though i'm not redirecting
anything at this point...

Here's the javascript function again:
//  Hello World
$.ajaxDotNet("/Service.svc/HelloWorld", {
verb: "GET",
success: function(obj) {
obj = obj.d;
alert('Hello World');
$(".HelloWorld").text(obj);
},
error: function(x, y, z) {
alert(x.responseText);
alert(y.responseText);
alert(z.responseText);
}
});


Additionally y.responseText and z.responseText come out as undefined.

Again, i'm miffed!

On Mar 4, 4:57 pm, Joseph Le Brech  wrote:
> Do you have the json handy??
>
> http://www.jsonlint.com/
>
> Paste the output in here to see if its valid json?
>
> is it generated from a asp service?
>
>
>
> > Date: Wed, 4 Mar 2009 08:24:52 -0800
> > Subject: [jQuery] Re: Ajax Dot Net Plugin
> > From: morni...@gmail.com
> > To: jquery-en@googlegroups.com
>
> > he's got the error, which is:
>
> > SyntaxError: JSON.parse
>
> > and sorry about my last post
>
> > alert(x.responseText) will show the error text (as will Firebug as
> > mentioned about)
>
> > anyways, the error your getting is that it seems that your ASP.NET
> > code can't parse the results to JSON
>
> > On Mar 4, 11:02 am, Joseph Le Brech  wrote:
> > > get firebug and put a breakpoint on for the line for error.
>
> > > > Date: Wed, 4 Mar 2009 07:58:45 -0800
> > > > Subject: [jQuery] Re: Ajax Dot Net Plugin
> > > > From: cakeordeat...@gmail.com
> > > > To: jquery-en@googlegroups.com
>
> > > > 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  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  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  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?
>
> > > _
> > > All your Twitter and other social updates in one 
> > > placehttp://clk.atdmt.com/UKM/go/137984870/direct/01/
>
> _
>  25GB of FREE Online Storage – Find out 
> morehttp://clk.atdmt.com/UKM/go/134665320/direct/01/


[jQuery] Re: Ajax Dot Net Plugin

2009-03-04 Thread Joseph Le Brech

Do you have the json handy??

 

http://www.jsonlint.com/
 

Paste the output in here to see if its valid json?

 

is it generated from a asp service?

 
> Date: Wed, 4 Mar 2009 08:24:52 -0800
> Subject: [jQuery] Re: Ajax Dot Net Plugin
> From: morni...@gmail.com
> To: jquery-en@googlegroups.com
> 
> 
> he's got the error, which is:
> 
> SyntaxError: JSON.parse
> 
> and sorry about my last post
> 
> alert(x.responseText) will show the error text (as will Firebug as
> mentioned about)
> 
> anyways, the error your getting is that it seems that your ASP.NET
> code can't parse the results to JSON
> 
> 
> 
> On Mar 4, 11:02 am, Joseph Le Brech  wrote:
> > get firebug and put a breakpoint on for the line for error.
> >
> >
> >
> > > Date: Wed, 4 Mar 2009 07:58:45 -0800
> > > Subject: [jQuery] Re: Ajax Dot Net Plugin
> > > From: cakeordeat...@gmail.com
> > > To: jquery-en@googlegroups.com
> >
> > > 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  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  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  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?
> >
> > _
> > All your Twitter and other social updates in one 
> > placehttp://clk.atdmt.com/UKM/go/137984870/direct/01/

_
 25GB of FREE Online Storage – Find out more
http://clk.atdmt.com/UKM/go/134665320/direct/01/

[jQuery] Re: Ajax Dot Net Plugin

2009-03-04 Thread MorningZ

he's got the error, which is:

SyntaxError: JSON.parse

and sorry about my last post

alert(x.responseText)  will show the error text  (as will Firebug as
mentioned about)

anyways, the error your getting is that it seems that your ASP.NET
code can't parse the results to JSON



On Mar 4, 11:02 am, Joseph Le Brech  wrote:
> get firebug and put a breakpoint on for the line for error.
>
>
>
> > Date: Wed, 4 Mar 2009 07:58:45 -0800
> > Subject: [jQuery] Re: Ajax Dot Net Plugin
> > From: cakeordeat...@gmail.com
> > To: jquery-en@googlegroups.com
>
> > 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  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  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  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?
>
> _
> All your Twitter and other social updates in one 
> placehttp://clk.atdmt.com/UKM/go/137984870/direct/01/


[jQuery] Re: Ajax Dot Net Plugin

2009-03-04 Thread Joseph Le Brech

get firebug and put a breakpoint on for the line for error.
 
> Date: Wed, 4 Mar 2009 07:58:45 -0800
> Subject: [jQuery] Re: Ajax Dot Net Plugin
> From: cakeordeat...@gmail.com
> To: jquery-en@googlegroups.com
> 
> 
> 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  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  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  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?

_
All your Twitter and other social updates in one place 
http://clk.atdmt.com/UKM/go/137984870/direct/01/

[jQuery] Re: Ajax Dot Net Plugin

2009-03-04 Thread Jon

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  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  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  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?


[jQuery] Re: Ajax Dot Net Plugin

2009-03-04 Thread Jon

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  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  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?


[jQuery] Re: Ajax Dot Net Plugin

2009-03-04 Thread MorningZ

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  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?