[TYPO3-ect] Integrate ajax with extensions
Zach Davis
zach at castironcoding.com
Wed Jul 12 17:51:53 CEST 2006
Christoph Koehler wrote:
>
>> If you need the other stuff, you will probably be happier with the
>> "regular" index.php which loads everything you might need already. Just
>> make sure your ajax responder is the only thing that is being loaded in
>> your TS-template.
>
>
> Ernesto,
>
> Could you go into a little more detail please? I just use the normal
> index.php, but how exactly would TS look like, and all that stuff?
>
> Thanks!
>
> Christoph
Christoph,
One way to do it is to tie your ajax responder to a specific page type
and then set that up in your template. Eg:
ajaxPage = page
ajaxPage.typeNum = 99
ajaxPage.10 < plugin.tx_ajaxResponder_pi1
Then, your calls to the ajax responder include &type=99 in the URL,
which tells your template to look to your responder PHP script for
output -- that script is then responsible for returning the XML
response. That's the general approach we've taken when we the eID
approach hasn't been sufficent.
Make sense?
Zach
-----------------------------
Zach Davis
Cast Iron Coding, LLC
http://castironcoding.com
More information about the TYPO3-team-extension-coordination
mailing list