scopingBar_separator undefined?

I'm getting a JS error:

'scopingBar_separator' is undefined

...when loading a map that adds a collection from local.live.com.

Works in FireFox, but not in Internet Explorer. Was working and then stopped spontaneously, no code changes.

Page can be viewed here:

http://www.downtownwilmington.com/Nightlife

I've tried it on a couple machines, emptied browser cache, etc...

Any ideas?

[543 byte] By [ChrisMarts] at [2007-12-26]
# 1
I'm seeing the same error in IE but not in Firefox, but I'm not using collections. The map is loaded and the dashboard is hidden.
Cudknees at 2007-9-4 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...
# 2
I can't repro this except on your site...can anyone else repro this error?
CalebT-MSFT at 2007-9-4 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...
# 3
Error appears in IE6 at line:
var taskAreaHeight=document.body.clientHeight-(scopingBar_separator.offsetTop+scopingBar_separator.offsetHeight)-footer.offsetHeight;

I've never seen this before, a quick look at your code doesn't reveal anything abnormal. I would start removing functionality to identify what line of your js code is causeing this and then maybe others can help?

John.

SoulSolutions at 2007-9-4 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...
# 4

My concern is that it is a problem with the VE control, not my code. The reason being is that it was working and spontaneously stopped plus it works fine in FireFox.

Having said that, I have disabled a few things including the other DHTML menus on that page, etc... but nothing seems to work.

Are there any recent changes (other than the new code release) that have been implemented? Or perhaps it is the new code release? I can't say I noticed this happening before today or yesterday.

ChrisMarts at 2007-9-4 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...
# 5
I'm having the same troubles since the latest update was pushed the other night.
duve at 2007-9-4 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...
# 6

I would like to have a (relatively) simple repro of this that I can pass on to the dev team. Have any of you who are seeing this started to dig in and simplify the code to find the source of the problem?

CalebT-MSFT at 2007-9-4 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...
# 7

I have a DIV on my page with an id="footer" - when I take that out, it seems to work.

Does that help?

ChrisMarts at 2007-9-4 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...
# 8
Chris Marts wrote:

I have a DIV on my page with an id="footer" - when I take that out, it seems to work.

Does that help?

That was it. Thanks!!!!

duve at 2007-9-4 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...
# 9

The question at hand now is will the VE code be updated to fix this or should I update my code? Or both, I guess, depending on how long a fix might be.

- Chris

ChrisMarts at 2007-9-4 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...
# 10
Well done spotting that one. Rest assured you won't be the only person that does that. At least now others can find the problem.
Your best bet would be not use an ID of footer anywhere.
John.
SoulSolutions at 2007-9-4 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...
# 11

I'm getting the same js error 'scopingBar_separator' undefined in IE. I've more than one div in my page and can't remove it. Also I'm using the hideDashBoard method. It displays the dashborad now even if I call hideDashBoard () . any ideas ?

-Bindia

BindiaRaj at 2007-9-4 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...
# 12
Thank you!!! I've just spent two hours trying to figure this same error out! I also had a div named "footer"
kmoffett at 2007-9-4 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...
# 13
Have you tried using map.HideDashboard() (with the uppercase H)?
Cudknees at 2007-9-4 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...
# 14

This fixed it for me too.

Would be nice if VE could use a naming convention for these id's to avoid these conflicts...

IanBlackburn at 2007-9-4 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...

Windows Live Developer Forums

Site Classified