NYCPHP Meetup

NYPHP.org

[nycphp-talk] Passing JAVASCRIPT variables to PHP

David Mintz david at davidmintz.org
Tue Apr 1 10:53:02 EDT 2008


On Tue, Apr 1, 2008 at 10:37 AM, tedd <tedd at sperling.com> wrote:

> Ajax can be very simple.
>
>
No doubt but that PHP can be a prolific author of Javascript without things
becoming overly complicated. Lately I have been using a home-grown
PHP/Javscript helper for Ajax contexts. It emits a content-type:
application/javascript header upon instantiation and has some convenience
methods that echo javascript snippets for the browser to execute.  I can say
$js->message('Foo!") and the element whose id is 'message' is updated to say
Foo!

-- 
David Mintz
http://davidmintz.org/

The subtle source is clear and bright
The tributary streams flow through the darkness
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20080401/60adc601/attachment.html>


More information about the talk mailing list