NYCPHP Meetup

NYPHP.org

[nycphp-talk] Which "ajax/xhr framework" are you using in PHP5?

Jon Baer jonbaer at jonbaer.com
Mon May 15 20:40:17 EDT 2006


Have you looked @ JQuery yet? (http://jquery.com), it is pretty slick  
in that it combines your "selector" as exactly what your stylesheet  
corresponds to select multiple elements.

The nice thing about RJS in Rails is that you get a page context  
object which allows you to control a "behind the scenes" update  
pretty neatly.  Im sure you can hack together the same thing w/ Sajax  
or similar.

However looking more closely @ it .. it basically just "translates"  
from one language (Ruby) to Javascript (to eval <scripts> coming  
back), so Im pretty sure a PHP-clone would be doable for Smarty  
views ...

$page["mydiv"]->highlight(); // or something like that

That "translation" is missing from what I have seen, or does Cake/ 
Symf already do it?  What do the guys @ Ning use?

- Jon

On May 15, 2006, at 6:32 PM, csnyder wrote:

> On 5/15/06, Jon Baer <jonbaer at jonbaer.com> wrote:
>> Ive become a Japhuby programmer the past few months and switching
>> back and forth, the last PHP bit I used Sajax for simple remote calls
>> but then got seriously hooked on Rails/Prototype/RJS and have to jump
>> back so I may use something w/ CakePHP but I thought Id ask a
>> general .. "what ajax lib" you are using (no explanation needed) as
>> the whole XHR thing is pretty trivial ...
>>
>> - Jon
>
> Prototype is scratching a lot of itch for me right now. I think of it
> as JavaScript 2.0. Not sure what extra candy you get when using it
> with Rails, but it sure is useful with php. My only gripe is that
> there is no API documentation that combines "standard" and Prototype
> js, so you have to keep at least two tabs open to get the full story:
> http://www.sergiopereira.com/articles/prototype.js.html
> and http://www.krook.org/jsdom/  (thanks, Dan!)
>
> I have also been using the visual effects and drag-n-drop features in
> Script.aculo.us, though I hacked that up pretty heavily to support
> multiple-selection.
>
> I want to add Behavior, too, just to get all the <script> tags out of
> the markup, but I haven't gotten that far down on the list. As I
> understand it, Behavior assigns js functionality to css classes, so
> that every div with class="draggable" can automatically be registered
> as draggable.
>
>
> -- 
> Chris Snyder
> http://chxo.com/
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
> New York PHP Conference and Expo 2006
> http://www.nyphpcon.com
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>




More information about the talk mailing list