I was having problems this morning with Prototype, in getting serialized forms, so I went back to this little cheat sheet that I wrote up once and updated it and figured out what the problem was. I uploaded my cheat sheet to my website, if anyone wants to see it.
Either way, to convert it to a JSON-formatted string, you need to cast the serialized element to an Object or a Hash of Prototype design first. That’s what was tripping me up, and that’s the final section on that forms cheat sheet.
I’m using Prototype a lot more at work. I’m building an intranet at work that is going to use a lot of AJAX, and so I really need to polish my skills.
Wow, this post is boring. It needs some unicorns.