Because the script is no longer running after the window is unloaded.

On Tue, Nov 25, 2008 at 5:03 AM, nikunj <[EMAIL PROTECTED]> wrote:

>
> hi,
>  i want to call controller action when my web browser is call , for
> that i use javascript like:
>
> <?php echo $ajax->Javascript->event('window','unload',$ajax-
> >remoteFunction( array( 'url' => array( 'controller' => 'cart',
> 'action' => 'check'), 'update' =>
> 'producttitle','position'=>'replace' ) )); ?>
> but this code is not working,
>
> place give me proper solution for that?
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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