Pages: [1] :: one page |
|
Author |
Thread Statistics | Show CCP posts - 1 post(s) |
Eduardo'o
STEEL CITY. Ataraxian Steel
0
|
Posted - 2012.01.10 19:33:00 -
[1] - Quote
Hi,
I know the IGB does not refresh automatically after a system jump.
But is there a way to do this through some fancy javascript? By comparing every 5 seconds the current IGB solarsystem variable with the solar system variable that was retrieved the moment the webpage was generated. When there is a difference, do a javascript page refresh so that the new system is used to compage the current IGB solar system variable with every 5 seconds.
Is this possible in any way?
Ed |
|
CCP Atlas
C C P C C P Alliance
170
|
Posted - 2012.01.10 21:18:00 -
[2] - Quote
Yes, that's just about how you do it, except that you must make an ajax call to your webserver and do the comparison there since the call will include the solarsystemID in the headers. |
|
Astrid Stjerna
Teraa Matar
419
|
Posted - 2012.01.10 21:44:00 -
[3] - Quote
CCP Atlas wrote:Yes, that's just about how you do it, except that you must make an ajax call to your webserver and do the comparison there since the call will include the solarsystemID in the headers.
Refreshing one variable for one person is fine, but what happens when twenty thousand people make the same function call? |
Callean Drevus
Icosahedron Crafts and Shipping Silent Infinity
64
|
Posted - 2012.01.10 21:53:00 -
[4] - Quote
Well, the server handles the request twenty thousand times.... Twenty thousand users simply require a bigger server than 10. This is a rather simple request though, so it might not be extremely heavy even with 20000 people doing it every 5 seconds.
What's heavy is reloading the page, but that hopefully doesn't happen all that much (flying from system to system takes about 30 seconds per system at least). Developer/Creator of EVE Marketeer
|
Steve Ronuken
Fuzzwork Enterprises
160
|
Posted - 2012.01.11 00:15:00 -
[5] - Quote
Would be nice to have those headers exposed via javascript, too. Though not easy, I guess. FuzzWork Enterprises http://www.fuzzwork.co.uk/ Blueprint calculator and other 'useful' utilities. |
Scrapyard Bob
EVE University Ivy League
598
|
Posted - 2012.01.11 05:52:00 -
[6] - Quote
And I'm 90% sure that the DotLan maps have that functionality...
http://evemaps.dotlan.net/radar
|
Callean Drevus
Icosahedron Crafts and Shipping Silent Infinity
64
|
Posted - 2012.01.11 10:03:00 -
[7] - Quote
Steve Ronuken wrote:Would be nice to have those headers exposed via javascript, too. Though not easy, I guess. Indeed, and the market quickbar, while we're at it it isn't easy to update them automatically without a page reload, but I'd be very happy to just have those in the CCPEVE object even once (or a function to ask for these kinds of things). Developer/Creator of EVE Marketeer
|
Project 69
Rennfeuer Curatores Veritatis Alliance
10
|
Posted - 2012.01.11 10:34:00 -
[8] - Quote
in the good old days we had a "OnSessionChange" function...... (or something like that)... I miss those and the "nearest location" and the "drag to IGB" function
but new is always better I've heard ;) |
Risingson
18
|
Posted - 2012.01.11 15:05:00 -
[9] - Quote
Steve Ronuken wrote:Would be nice to have those headers exposed via javascript, too. Though not easy, I guess. yeah a session change should trigger a javascript event we could listen to in IGB. dont know about the technical side to implement something like that though. Eveeye has an IGB OOG sync feature aswell doing a server call to get headers every 15 seconds. even if that load is not too heavy its not cool. Eveeye.com -á- New Eden Bordcomputer Systems |
Eduardo'o
STEEL CITY. Ataraxian Steel
0
|
Posted - 2012.01.11 20:10:00 -
[10] - Quote
Thx guys,
Indeed, having the onsessionchange back would be awesome |
|
John Crichton Jr
Center for Advanced Studies Gallente Federation
0
|
Posted - 2012.04.09 07:34:00 -
[11] - Quote
Meh, imo the current method is pretty simple.
Quote:setInterval(function(){$.get("/users/"+user_id+"/reload");}, 10000)
Then just catch the refreshed headers from the get request.
If there is new data then simply display it.
|
|
|
|
Pages: [1] :: one page |
First page | Previous page | Next page | Last page |