Hi there!
I've been using prototype for a while now and I quite enjoy it.
However, it seems that with the recent upgrade from 1.6 to 1.7 the
toJSON method on hashes broke (or the way that I'm using it is no
longer supported). Since I could not find any information about this
anywhere, I'm posting here.
What I'm doing is, reduced to what seems relevant to me, this:
var x = $H({'foo': 'bar'});
console.log(x.toJSON());
On prototype 1.6 this prints (as expected) '{"foo": "bar"}', on 1.7 I
get an object (see http://dump.ott.net/proto/). This causes problems
when I try to send the data in a post request body (with
"Ajax.Request(...{...postBody: x.toJSON()".
Is this a bug in prototype 1.7 or am I doing something wrong?
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.