that's what prototype's "onComplete" callback is for

On 4/10/06, 100rk <[EMAIL PROTECTED] > wrote:

If I change my view index.thtml to

<?php echo $ajax->link('JS TEST', '/tests/test_one',
array('update'=>'dummy')); ?>
<div id="dummy"></div>

it works fine.

So question is: do I really need this dummy div as target for update,
or there is some clean CakePHP way how to achieve this without this
dummy div? Or some _javascript_ solution with Prototype? You know, as I
want to execute _javascript_ only, it looks strange to me generate some
(even hidden) div in page.



www.dospuntocero.info
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to