NYCPHP Meetup

NYPHP.org

[nycphp-talk] So who's using Ajax anway?

Rob Marscher rmarscher at beaffinitive.com
Thu Nov 9 12:51:42 EST 2006


I'm not currently using a server-side php ajax framework.  I do the 
following check on incoming requests:
isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER 
['HTTP_X_REQUESTED_WITH']  == 'XMLHttpRequest'
Prototype and jQuery ajax calls (and maybe other frameworks) set that 
header to their requests, so can do the above check and use a different 
template or execute different code or whatever.  That way can support 
requests for ajax and regular page requests with the same url and 
without changing much server side code.

Dell Sala wrote:
> One excellent free AJAX resource is Michael Mahemoff's softwareas.com  
> podcast. He also has a companion website goes along with his book  
> ajaxpatterns.org (although it seems to be down right now).
>
> Start here: http://softwareas.com/ajax-basics-podcast-1 and work your  
> way forward from there.
>
> Once you understand the fundamentals, find a simple framework to help  
> you get started. I like MyBic. http://www.litfuel.net/mybic/ It's  
> pretty lightweight, but has some nice extra features like a built-in  
> debugger, and default behavior for gracefully handling network-down  
> issues and things like that.
>
> What other AJAX frameworks are people using? Ken, I know you've  
> rolled your own that looks super-lean. I'd like to try that. I've  
> tried PEAR's HTML_AXAJ, but found it overkill.
>
> -- Dell
>
>
> On Nov 9, 2006, at 11:38 AM, Ben Sgro (sk) wrote:
>
>   
>> So, I'd like to look into Ajax.
>>
>> Any good books you can recommend? I know PHP pretty well, but I  
>> dont have
>> much experiance w/Javascript, or Java (but I know c pretty well).
>>
>> - Ben
>>     
>
> _______________________________________________
> 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
>
>   




More information about the talk mailing list