[Typo3-dev] ajax for popup menus

Jeff Segars jsegars at alumni.rice.edu
Mon Oct 24 15:50:54 CEST 2005


Hey Sebastian,
Thanks for the explanation.  After thinking about it a little more, I 
would say the need for a third-party library depends on how much we're 
trying to do with AJAX techniques.

If we're just creating the xmlHttpRequest object and working with one 
particular element on the page, then I agree that pulling something like 
prototype or sajax in is overkill.

When we start getting into heavy DOM manipulations that may work on a 
dynamic set of elements, I see more value in a third-party library.  It 
would hide all the browser inconsistencies and most likely provide a 
clean constructor or method that can be called easily to perform the 
manipulations.

For example, if I want make a link that performs an update of a single 
DOM element using prototype, I insert the following code javascript:

<a href="#" onclick="new Ajax.Updater('details_51', 
'/records/details/51', {asynchronous:true, evalScripts:true}); return 
false;">Details Views</a>

It doesn't do anything to simplify the server side of things but the 
client-side javascript is made much easier.

Thanks,
Jeff





Sebastian Kurfuerst wrote:
> Hi Jeff,
> i thought about implementing a third-party library, and I used sajax as
> a basis for my ajax tries as well. But I needed to implement
> typo3-specific functions, and that's why I implemented t3lib_ajax which
> can be found in the bugtracker (1577). I am curious to hear your opinion
> on this, there are some example implementations in template.php and
> alt_clickmenu.php.
> 
> Greets,
> Sebastian
> 




More information about the TYPO3-dev mailing list