1

I am writing a web page for the EvE online game using php and javascript. The EvE in-game browser sets some proprietary headers which include information about a characters location etc.

The web page is meant to draw a map showing the location of everyone connected to the web page. In order to track peoples movements the location information within the header needs to periodically update.

My current solution is to add a hidden iframe with a simple page refresh. This works, but the reloading of the iframe is visible on the status bar (it shows the url of the page being loaded). Ive seen other location tracking webpages that didnt show a url being loaded on the status bar and Im wondering if theres a more elegant solution to getting a fresh http request


Thanks for the advice guys. Im not too familiar with javascript or php so muddled my way through all the advice and finally used

setInterval(function() {
    GetUpdate();
    }, 5000
);

function GetUpdate()
{
    var xhReq = new XMLHttpRequest();
    xhReq.open("POST", "http://myurl/parser.php", false);
    xhReq.send(null);
}

This seemed to do the trick without me confusing myself too much

skaffman
  • 381,978
  • 94
  • 789
  • 754
user812624
  • 71
  • 1
  • 1
  • 6
  • Bro we just got monocled by CCP, are you familiar with javascript? How many users do you want to track? – hakre Jun 23 '11 at 16:46

1 Answers1

0

perhaps you can use Ajax?

JQuery-PeriodicalUpdater

jQuery and AJAX response header

Community
  • 1
  • 1
Al W
  • 7,008
  • 1
  • 17
  • 39