[TYPO3-hci] AJAX: serverside logic vs. clientside logic

Johannes Reichardt typo3 at gramba.de
Sat Sep 16 12:27:32 CEST 2006


Sorry i was  a bit unclear in my last post:

its exactly the same methods that you would code for "normal" output. like

class FOO {
function myMethod($stuff) {
$content = '<table><tr><td>'.$stuff.'</td></tr></table>';
return $content;
}
}


i can call that methods with ACE just like this with JS:

FOO.myMethod.call('BLUB');
FOO.myMethod.result = function (c) { 
document.getElementById('result').innerHTML = c; }

I said already that this works with arrays and objects as well, so in 
this case i can use this classs for AJAX and for "Web1.0" - no overhead 
at all!

- Johannes


> Thats one thing why i propose ACE as AJAX base all the time. Its exactly 
> the same methods which makes it a breeze to work with it. No "special" 
> methods for output, everything happens in my classes and i just decide 
> from where i will call it. I think most hast to happen in the php 
> anyway, else we could reuse the backend from typo3 2.x or so :)
>
> - Johannes
>
>   
>> Regards
>>
>> Elmar
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> TYPO3-team-hci mailing list
>> TYPO3-team-hci at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-team-hci
>>
>>   
>>     
>
> _______________________________________________
> TYPO3-team-hci mailing list
> TYPO3-team-hci at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-team-hci
>
>   




More information about the TYPO3-team-hci mailing list