These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

IGB JavaScript Problem

Author
Zeitonaut
Zeiteinheit
#1 - 2015-03-02 15:27:45 UTC  |  Edited by: Zeitonaut
Hi,

I don't know if this forum is the proper place for my question, but:

I created a searchable website of all ships and drones and some of their PvP related attributes (my forum post about it). In out of game browsers the search is working, but not in in-game browser.

Can you give me a hint to solve this problem? I am a JavaScript (and CSS, as you might have noticed...) novice and can't the see error. (I believe it has something to do with the event listener...)

Thanks!


oZ
Pete Butcher
The Scope
Gallente Federation
#2 - 2015-03-02 18:52:39 UTC
Zeitonaut wrote:
Hi,

I don't know if this forum is the proper place for my question, but:

I created a searchable website of all ships and drones and some of their PvP related attributes (my forum post about it). In out of game browsers the search is working, but not in in-game browser.

Can you give me a hint to solve this problem? I am a JavaScript (and CSS, as you might have noticed...) novice and can't the see error. (I believe it has something to do with the event listener...)

Thanks!


oZ


You can debug the igb. In eve folder you should see an exe called local server or something similar. All logs from igb go there.

http://evernus.com - the ultimate multiplatform EVE trade tool + nullsec Alliance Market tool

Zeitonaut
Zeiteinheit
#3 - 2015-03-03 08:04:18 UTC  |  Edited by: Zeitonaut
Thank you, i will have a look at it.

EDIT: It's a pity. The LogServer didn't show a search related error.
Bloemkoolsaus
Deep Core Mining Inc.
Caldari State
#4 - 2015-03-03 12:46:21 UTC  |  Edited by: Bloemkoolsaus
I've had problems before in the IGB with scrips that need to run on document load.
What may happen is the javascript at the end of your page is executed, but the DOM hasn't fully loaded yet. So, the events never get attached to the proper input fields.

For me, jquery's $(window).load solved the issues.
Pete Butcher
The Scope
Gallente Federation
#5 - 2015-03-03 14:10:44 UTC
Bloemkoolsaus wrote:
I've had problems before in the IGB with scrips that need to run on document load.
What may happen is the javascript at the end of your page is executed, but the DOM hasn't fully loaded yet. So, the events never get attached to the proper input fields.

For me, jquery's $(window).load solved the issues.


If you're using jquery you should use $() instead of window.onload event. Also, igb is not compatible with jquery 2.

http://evernus.com - the ultimate multiplatform EVE trade tool + nullsec Alliance Market tool

Dragonaire
Here there be Dragons
#6 - 2015-03-03 19:29:23 UTC
Okay so played around with you page over the last day and modernized it a bit Blink Thought it really need to leave the 90's which is html 3.2 was superseded by 4.01 which has been superseded by html5 now of course as well Smile While I was at it I fixed the JS bug too. IBG is a little dated so doesn't have the newer 'onstatechange' stuff but adding 'onload' to the body works just fine with it and everything else. Did a radical thing with the JS too I put it in to head of all places. I know old fashion but guest what it still works for everything including the IGB Blink All the old ugly font tag and other stuff that belongs in CSS should be there now. CSS probably can be cleaned up some more but it's working near pixel prefect already so shouldn't take much work. Oh btw here's the link to the improved version enjoy Big smile

http://pastebin.com/gtjGyVm7

Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.

Zeitonaut
Zeiteinheit
#7 - 2015-03-03 20:17:37 UTC
Dragonaire wrote:
Okay so played around with you page over the last day and modernized it a bit


THANK YOU!


oZ