I have been hooked on jQuery. AMAZING JS stuff. There is an ajax/form plug in that will handle all this. Serialize, JSON, zillion options. Mixing it all up with php, and you can do pretty much anything.
http://jquery.com/ Plug in examples: http://www.malsup.com/jquery/form/#code-samples :-) ed On 8/9/07, Cliff Hirsch <[EMAIL PROTECTED]> wrote: > > My Ajax response handler uses this line, which is fairly typical: > > var output = req.responseText; > > >From php, I'm echoing back json. Example: > {"status":1,"count":0,"data":""} > > But instead of var output being an object, it is a string: > "{"status":1,"count":0,"data":""}" > > How do I make this an object? > > Cliff > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -- the Blog: http://www.utopiaparkway.com the Karma: http://www.coderswithconscience.com the Projects: http://flickr.com/photos/[EMAIL PROTECTED]/ the Store: http://astore.amazon.com/httpwwwutopic-20 _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php