CakePHP is simply a framework built on PHP, anything you can do with PHP and JS (including whatever flavour of JS framework you may be using) can be done with CakePHP sites.
Learn how to write your own JS to do this and apply it to your CakePHP site. HTH, Paul. On Oct 13, 5:30 am, Miqdad Ali <[email protected]> wrote: > <script> > $(document).ready(function(){ > Notifications(); // this will call only one time thats > first body load time > setInterval("Notifications()", 5000); // this will call > each 5000ms > //60000 > }); > function Notifications(){ > //alert("Notify"); > $.ajax({ > url: "testtt.php", > success: function(data){ > var test=eval(data); > $("#dii").empty(); > for(i=0;i<test.length;i++){ > > $("#dii").append("<b>"+test[i]['name']+"</b>"); > $("#dii").append(":"); > $("#dii").append(test[i]['post']); > $("#dii").append("<br />"); > > } > } > }); > } > </script> > > here Notifications() function will call each 5000ms you can get ajax request > from the url you given ... let me know if you have any doubt . > > --------------------------------------------------------- > > Miqdad Ali K > +919995258790http://www.miqdadalik.com > > > > > > > > On Wed, Oct 12, 2011 at 10:59 PM, Anna P <[email protected]> wrote: > > system -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
