Favorites

From: Stefan Kaczmarek <stefan_at_thezonie.org>
Date: Sun, 29 Apr 2007 10:30:21 -0700

For some reason, whenever I add or remove favorites, I get this:

invalid label
{"favorites":[],"total":"0"}\n

It says "Invalid label" even though the JSON looks fine. It happens
at the beginning of my callback function, before anything is
executed, so it's barfing on the JSON for some reason. Can you remove
the \n at the end or something?

In order to do that, just do an "exit();" after you send the JSON,
that way no additional characters will be written after it. Hopefully
that'll help. The favorites are being added and deleted, but the
callbacks are failing because the JSON is making it angry for some
reason.

- Z
Received on Fri Sep 14 2007 - 10:56:02 BST

This archive was generated by hypermail 2.2.0 : Sun Sep 16 2007 - 22:19:48 BST