Something like :

$js .= 'window.location.href="'.router::url('/controller/action',
true).'";';
echo $javascript->codeBlock($js);

There might be a better way, according to the "beforeRedirect" of
RequestHandler, this code is quite "old" for me (but working)..
hth

On May 14, 8:16 pm, Dovdimus Prime <[EMAIL PROTECTED]> wrote:
> Errr... sorry but how would I go about doing that? How do I get some
> javascript function to run when the ajax function returns?
>
> The callback function which modifies the div is all wrapped up in the
> framework so I've got no idea how to add to it.
>
> Thanks
>
> David
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to