refresh a div
hi everybody, somebody ask me to make a tutorial on cakephp for some students. so i decide to make this students happy and give them a chat. i create a view add_mesg and a another called view_mesg. All works fine but now i want to use ajax. i've put two div called add_mesg_div and view_mesg_div in the index view. i've put the $this-render('the view', 'ajax'); in the function of the controller. now i can submit the form and i create a button that can refresh the view_mesg_div.. but how can i make this div refresh automaticaly? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: refresh a div
bracchetto ha scritto: now i can submit the form and i create a button that can refresh the view_mesg_div.. but how can i make this div refresh automaticaly? take a look to this function: AjaxHelper::remoteTimer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: refresh a div
yes.. thanks, now it works --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---