views:

976

answers:

1

How do you implement onmousemove in firefox. I have it working in ie7 but no alert pops in firefox. Is is not supported or done differently?

<esri:Map ID="Map1" runat="server" MapResourceManager="MapResourceManager1" 
                    Height="100%" Width="100%" VirtualDirectory="" 
                    PrimaryMapResource="ESRI_Imagery_World_2D" Extent="-130,37,-117,46" 
                    onmousemove="alert()" >
                </esri:Map>
+3  A: 

I thinkk the problem is that you need to put something inside your alert(), such as:

<esri:Map ID="Map1" runat="server" MapResourceManager="MapResourceManager1" 
                    Height="100%" Width="100%" VirtualDirectory="" 
                    PrimaryMapResource="ESRI_Imagery_World_2D" Extent="-130,37,-117,46" 
                    onmousemove="alert('test');" >
                </esri:Map>

I just tried this and it worked in FF:

<div onmousemove="alert('test');" style="height:100px; width:300px; background-color:#f00;"></div>
Darryl Hein