Re: Preloading a div with AJAX
I am now, thanks. --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Preloading a div with AJAX
[EMAIL PROTECTED] wrote: Makes sense, but now I'm having the issue that the controller for the div is different than the one for the main page, so it gives a can't find controller error, any idea how to get around this? Are you using requestAction() ? http://manual.cakephp.org/chapter/controllers -- TJ Singleton --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Preloading a div with AJAX
Makes sense, but now I'm having the issue that the controller for the div is different than the one for the main page, so it gives a can't find controller error, any idea how to get around this? --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Preloading a div with AJAX
When dealing with ajax and cake, usually you use ajax to update a part of your screen. For this you would use an initial view that contains the div and whatever HTML you want in it (can also be empty). To update that div you would create another view that will just contain the "inside" div to update of the initial view, the Controller method should render the second view that will update your div into the first view.. Hope this help.. On Jan 4, 9:39 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: Hey, Im kind of new to both Cake and AJAX, and I'd like to populate a div with some ajax, but I'm wondering when the user first comes to that page, how do i have it already in the div? Probably really simple, thanks. --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Preloading a div with AJAX
Hey, Im kind of new to both Cake and AJAX, and I'd like to populate a div with some ajax, but I'm wondering when the user first comes to that page, how do i have it already in the div? Probably really simple, thanks. --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---