Pages: [1] :: one page |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |
Kielen Dres
Sefem Velox Swift Angels Alliance
2
|
Posted - 2014.06.04 16:40:00 -
[1] - Quote
Does anyone have a useful way to force the IGB to get new headers WITHOUT a full page refresh?
So far I've tried just making a new XMLHttpRequest but it seems the eve related headers only come through on the initial page load.
If there is so way to access them later, or to refresh them independently of the page contents, please let me know. There are a few apps out there that seem to do this successfully so I'm sure it can be done. |
Dragonaire
Here there be Dragons
54
|
Posted - 2014.06.04 17:01:00 -
[2] - Quote
Only time that I know of that any browser sends headers is on page request that just part of the HTTP process. The same is true with webserver it's only on sends that it can do headers which includes XMLHttpRequests. IGB does one thing that normal browser doesn't in that on ingame session changes (dock, undock, jump, etc) it re-requests the current page with the updated headers. I believe you can also send header as part of your XMLHttpRequest as well but you have to do it yourself it's not done for you in any way like main page requests. Hope that gives you some ideas how to do it. Finds camping stations from the inside much easier. Designer of Yapeal-á for Eve API. Check out the Yapeal PHP Library thread for more information. |
Myopic Thyne
Shattered Paradigm Eon.Apocalypse
23
|
Posted - 2014.06.04 17:21:00 -
[3] - Quote
Kielen Dres wrote:Does anyone have a useful way to force the IGB to get new headers WITHOUT a full page refresh?
So far I've tried just making a new XMLHttpRequest but it seems the eve related headers only come through on the initial page load.
If there is so way to access them later, or to refresh them independently of the page contents, please let me know. There are a few apps out there that seem to do this successfully so I'm sure it can be done.
You should be getting a new set of headers with your XHR; not sure why you wouldn't, double check to make sure you're not somehow discarding them along the way? More details/code samples would help diagnose this more perhaps. |
Kielen Dres
Sefem Velox Swift Angels Alliance
2
|
Posted - 2014.06.04 18:07:00 -
[4] - Quote
Dragonaire wrote:on ingame session changes (dock, undock, jump, etc) it re-requests the current page with the updated headers
this is the part that my code isn't dealing with (and I didn't know this before). I'm using a library to read the headers, and I can see that in the page source the headers have been updated after a jump, but my library wont re-read them, I guess it expects them to be the same.
Thanks for the lead, I'll keep searching. |
Bloemkoolsaus
Viperfleet Inc. Disavowed.
162
|
Posted - 2014.06.05 09:18:00 -
[5] - Quote
I use ajax requests (XMLHttpRequest) to get updated headers when people jumped/docked/whatever. Make sure the requested URL of you ajax request is also trusted by the IGB. |
Kielen Dres
Sefem Velox Swift Angels Alliance
2
|
Posted - 2014.06.07 10:34:00 -
[6] - Quote
Bloemkoolsaus wrote:I use ajax requests (XMLHttpRequest) to get updated headers when people jumped/docked/whatever. Make sure the requested URL of you ajax request is also trusted by the IGB.
So you just make a new request to a completely different URL and read those headers? That seems like a good way to go. I'll try that. |
|
|
|
Pages: [1] :: one page |
First page | Previous page | Next page | Last page |