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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.