You don’t need jquery to do this. http://www.sitepoint.com/forums/showthread.php?135179-Javascript-Refresh. You don’t need the return true; at the end and you’d only need 2 script elements if you want to send requests asynchronously. Only one will suffice as JavaScript is kept in memory even though the element that it loaded from has been changed. Just change the URL to a php one and make sure the header of the php is set to output as JavaScript. If the returned script is dynamic you’ll also need either a no-cache header or add a timestamp to the querystring