damn it, not resolved.  Same status as last.  Forget it.  I'll hack
away at this.

On Jun 29, 2:11 pm, expresso <dschin...@gmail.com> wrote:
> if I try a hard coded string like this, it's fine when I pass this
> back.  Notice that it does NOT have the []:
>
> string testJSON = @"{""ImageTag"":""&lt;img 
> src=&quot;http://www.xx.com/image/473.jpg"alt=&quot;&quot;&gt;""},
> {""ImageTag"":""&lt;img src=&quot;http://www.xxx.com/image/
> 485.jpg&quot; alt=&quot;&quot;&gt;""}";
>
> On Jun 29, 2:07 pm, expresso <dschin...@gmail.com> wrote:
>
> > actually I think it is valid, the quote must have showed up rendered
> > in that last post.
>
> > [{"ImageTag":"&lt;img src=&quot;http://www.xxx.com/image/515.jpg";
> > alt=&quot;&quot;&gt;"},{"ImageTag":"&lt;img 
> > src=&quot;http://www.xxx.com/cat_image/426.jpg"alt=&quot;&quot;&gt;"}]
>
> > oh well I'll play with it some more.
>
> > On Jun 29, 2:02 pm, Mean Mike <mcgra...@gmail.com> wrote:
>
> > > did that solve the problem ?
>
> > > On Jun 29, 2:46 pm, expresso <dschin...@gmail.com> wrote:
>
> > > > Thanks mike.  It's a bit rough for me trying to customize this stuff
> > > > as I'm still pretty new to jQuery.  I've got the books and all but
> > > > still not the easiest to code in...as we all know AJAX is not easy.
> > > > While jQuery makes it easier, it's still not that easy.
>
> > > > On Jun 29, 1:40 pm, Mean Mike <mcgra...@gmail.com> wrote:
>
> > > > > sorry I can't help with your carousel but that is not valid json you
> > > > > have extra quote in this part of line  '.jpg" alt='
>
> > > > > mike
> > > > > On Jun 29, 2:07 pm, expresso <dschin...@gmail.com> wrote:
>
> > > > > > It appears that the jCarousel project is obselete.  The forum for it
> > > > > > has halted in 2008.  This is frustrating as I'm trying to look for a
> > > > > > carousel that does dynamic loading.
>
> > > > > > here's the json
>
> > > > > > [{"ImageTag":"&lt;img src=&quot;http://www.xxx.com/image/515.jpg";
> > > > > > alt=&quot;&quot;&gt;"},{"ImageTag":"&lt;img 
> > > > > > src=&quot;http://www.xxx.com/image/426.jpg"alt=&quot;&quot;&gt;"}]
>
> > > > > > On Jun 29, 1:01 pm, Mean Mike <mcgra...@gmail.com> wrote:
>
> > > > > > > ohh yeah can we see the json result ?
>
> > > > > > > On Jun 29, 1:49 pm, expresso <dschin...@gmail.com> wrote:
>
> > > > > > > > I borrowed this function 
> > > > > > > > fromhttp://sorgalla.com/projects/jcarousel/examples/dynamic_flickr_feed.html
>
> > > > > > > > function mycarousel_decodeEntities(s) {
> > > > > > > >     return s.replace(/&amp;/g, "&")
> > > > > > > >             .replace(/&quot;/g, '"')
> > > > > > > >             .replace(/&#039;/g, "'")
> > > > > > > >             .replace(/&lt;/g, "<")
> > > > > > > >             .replace(/&gt;/g, ">");
>
> > > > > > > > };
>
> > > > > > > > and I'm trying to use it in my code here:
>
> > > > > > > > function mycarousel_itemLoadCallback(carousel, state) {
>
> > > > > > > >     $.getJSON("http://localhost:59396/xxx/xxxHandler.ashx?
> > > > > > > > action=cjson",
> > > > > > > >         function(data) {
> > > > > > > >             $.each(data, function(i, item) {
> > > > > > > >                 carousel.add(i, 
> > > > > > > > mycarousel_decodeEntities(item));
> > > > > > > >                 if (i == 3) return false;
> > > > > > > >             });
> > > > > > > >         });
>
> > > > > > > > };
>
> > > > > > > > for some reason I get an error in firebug saying this:
>
> > > > > > > > s.replace is not a function
> > > > > > > > [Break on this error] return s.replace(/&amp;/g, "&")
>
> > > > > > > > I know I've used this very same code before and the only 
> > > > > > > > difference
> > > > > > > > was that I changed some JSON that is returned but it's valid 
> > > > > > > > json.

Reply via email to