Login Register

dojo preload bug

[EDIT: Moved to Dojo 0.4 Support.]

Hi.
On the following page, polygons on the map should act as hoverable
areas, with enhanced border and info tooltip appearing as you hover
over them.
It works fine in IE; in Firefox however the effect doesn't work on the
first load. There are no javascript errors but nothing works. If you
simply refresh the page, the code starts working normally.

The page is at: http://www.stroy-estate.ru/MapView.aspx?id=7

I wonder if it's the problem with dojo way of loading packages...
Is there any way to fix this?

It looks like you're using Dojo 0.4 for this...

...so I'll move the thread. But I just loaded that site using WebKit (now Safari 3 if you have Leopard) and the polygons loaded just fine first time around. It's possible that you are running across caching issues with FF--but at the same time if there are pre-loading bugs, they were probably addressed with the Dojo Core (0.9+).

I'd suggest porting the page to 0.9 (or you can wait a few days for the 1.0 release), and then trying it out.

Dojo 1.1.0 and ie7 have same issues

I'm seeing the same issues with dojo 1.1.0 and ie7 (fully patched). Have a page with a number spinner and date picker that loads fine the first time its pulled up in FF2 but fails with four js errors in ie7. A simple refresh of the ie7 page and everything loads fine.
What gives?