Hi guys I'm using jquery to load content into a <div> called content. I use this to dynamically load my pages. One of the pages is a shoutbox. I need to autorefresh the shoutbox so it works like a chatroom/facebook chat. As the shoutbox is dynamically loaded, document.ready() doesn't work. How can I refresh content inside a <div> that was populated using AJAX. Also, how can I autorefresh this every 10 seconds or whatever? Thanks, Mike
Think AJAX. Something along the lines of $(document).ready(function() { $("#our-div").load('/shoutbox/file.php?p=arameters);}, 1000); $.ajaxSetup({ cache: false }); }); Code (markup): where 1000 being your refresh rate.