[fusion-users] A phantom bug. Empty string to getElementById()
Tómas Guðmundsson
tomas at snertill.is
Tue Jul 1 05:19:40 EDT 2008
Hi all.
Always fun when you correct your own code. Just in this morning I found out how to solve this using the fantastic (not so much) debuggers associated with Internet Explorer. The errors all lay within my own code so it was easy to track down but the reason it worked in Firefox and not Internet Explorer is that a block of code like this, gives errors and does not function properly in IE.
var opt = {
height: 50,
width:50,
top: 50,
left: 50,
}
A keen eye can spot the errors but since this works perfectly in FF3 I hadn't noticed them. This is the correct(est) version.
var opt = {
height: 50,
width: 50,
top: 50,
left:50
};
Now, as you can hopefully see I omitted the last comma (,) in the opt code block and I added the semicolon(;) at the end of the declaration. So this is logged for future references in the mailing list. Hope this helps as many as possible.
Regards,
Tómas.
From: fusion-users-bounces at lists.osgeo.org [mailto:fusion-users-bounces at lists.osgeo.org] On Behalf Of Tómas Guðmundsson
Sent: 30. júní 2008 16:45
To: fusion-users at lists.osgeo.org
Subject: [fusion-users] A phantom bug. Empty string to getElementById()
Hi all,
I have been debugging for the last 4 hours and no luck so I decided to send this post. For some reason Fusion is loading up the legend panel, but no other panels. In Internet Explorer it stops after loading the Legend, and the rest of the panels, overview map, toolbars are not visible. I have no idea what is going on behind the scenes but some runs in FF 3 shows me "Empty string passed to getElementById()". This supposedly happens in jx_combined.js, in line 876 while the ajax callback is being sent backed to some body. I figured it happened when it did not parse / read the response of "CreateSession.php" callback but that is the last file that is called before this error occurs.
On another setup (almost identical, just another computer) it does not occur and the page is shown beautifully. On that setup Internet Explorer 7 does not show any icons regarding errors in page but on the other setup where the error occurs it shows error in page symbol. Too bad I don't have some debugging tools for IE.
Kind regards,
Tómas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/fusion-users/attachments/20080701/a95f4ae6/attachment.html
More information about the fusion-users
mailing list