NYCPHP Meetup

NYPHP.org

[nycphp-talk] PHP to ajax variable passing problem

Edward Potter edwardpotter at gmail.com
Thu Aug 9 18:21:12 EDT 2007


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 <cliff at pinestream.com> 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/86842405@N00/
the Store: http://astore.amazon.com/httpwwwutopic-20



More information about the talk mailing list