Tuesday, November 25, 2008

Re: java script query

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

On Tue, Nov 25, 2008 at 5:03 AM, nikunj <nikunjkansara@gmail.com> 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: