Hi Hendrick Jan,
On 16 Apr 2011, at 18:36, Hendrik Jan van Meerveld wrote:
> Hi all,
>
> I'm trying to place a list on a website.
> The list "design/_list/listname/viewname" works fine and gives me the HTML I
> want.
>
> But if I try to put this HTML on my website like this:
> $db.list("design/listname","viewname",
> {
> success: function(data){
> $("#sometable tbody").append(data);
> }
> }
> );
>
> I get the error:
> [object XMLHttpRequest] 200: Invalid JSON: <tr id="row_bo......
This looks like jQuery is trying to parse the HTML response as JSON. I believe
there are options to turn this off.
Cheers
Jan
--
>
> So why is my browser trying to read this as JSON?
> Does anybody have experience with putting lists on a webpage?
>
> Kind regards,
> Hendrik Jan