Jump to content

Auto-Refresh External Page


Jumpy09

Recommended Posts

							<script>
							$(document).ready(function() {
							$("#shoutbox").load("shoutbox.php");
							var refreshId = setInterval(function() {
							$("#shoutbox").load(\'shoutbox.php\');
							}, 5000);
							});
						</script>
						<div>Shoutbox</div>
						<div id="shoutbox" style="width:225px;height:130px;overflow:auto;">
						</div>

 

The problem here is that I am using a paging system with $_GET['blah']; and this is setting my $session->referrer to shoutbox.php.

 

I need it to stop, it's getting aggravating that every redirect ends up going to the shoutbox.  I don't know any other way to do what I need, as the shoutbox needs to update constantly to keep new messages up.

 

I wouldn't mind direction toward something else, or a fix to this.  I don't really know how to fix it.

Link to comment
https://forums.phpfreaks.com/topic/202880-auto-refresh-external-page/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.