to backtrack previous to my last post with the second error, I had to
encode the string to get it working.  Encoding got rid of the \u00
which it looked like jQuery did not like?

On Jun 29, 9:25 am, MorningZ <morni...@gmail.com> wrote:
> The fact it is escaped could be an issue
>
> are you doing HttpUtility.HtmlEncode in your handler for some reason?
>
> Do you know about NewtonSoft's Json.NET library that makes it a snap
> to generate JSON from .NET classes?
>
> On Jun 29, 10:07 am, expresso <dschin...@gmail.com> wrote:
>
> > I have the following setup on my page inside a function:
>
> >     $.getJSON("http://localhost:59396/xxx/xxxHandler.ashx?
> > action=xxxjson",
> >         function(data) {
> >         alert('got here');
> >         $.each(data.items, function(i, item) {
>
> >         carousel.add(i, mycarousel_decodeEntities(item.ImageTag));
> >                 if (i == 3) return false;
> >             });
> >         });
>
> > I know that if I take that url and render it in the browser straight
> > up, I get this:
>
> > [{&quot;ImageTag&quot;:&quot;\u003cimg src=\&quot;http://www.xxx.com/
> > cat_image/1659D.jpg\&quot; alt=\&quot;\&quot;\u003e&quot;},
> > {&quot;ImageTag&quot;:&quot;\u003cimg src=\&quot;http://www.xxx.com/
> > cat_image/536.jpg\&quot; alt=\&quot;\&quot;\u003e&quot;}]
>
> > where xxx is our domain.
>
> > So not sure why it's never getting to my alert inside function(data)

Reply via email to