[Chameleon] selectbox vs MapDHTML in IE

Piebe de Vries piebe.de.vries at geodan.nl
Tue Apr 19 10:43:19 EDT 2005


Thx.  It doesn't exactly make my code look nicer :) but number 2 did the 
trick.

Piebe

Paul Spencer wrote:

> That bug refers specifically to the QuickZoom widget but this is a 
> class of general problems with IE.  You have a couple of choices:
>
> 1. move the select box ... not optimal but it will work
>
> 2. add onfocus/onblur handlers to your select and temporarily unset 
> the form variable NAV_CMD. I.e:
>
> <script type="text/javascript">
> var myNavCmd;
>
> function myFocus()
> {
>     myNavCmd = document.forms[0].NAV_CMD.value;
>     document.forms[0].NAV_CMD.value = '';
> }
>
> function myBlur()
> {
>     document.forms[0].NAV_CMD.value = myNavCmd;
> }
> </script>
>
> <select onfocus="myFocus()" onblur="myBlur()">
> ...
>
> (note code not tested but should work)
>
> 3. try to add something to the onchange that prevents event 
> propogation ... this is tricky and is the root of the problem - IE and 
> firefox propogate events in different ways
>
> Cheers
>
> Paul
>
> Piebe de Vries wrote:
>
>> However, I am using chameleon 2.0 :(
>>
>> Bart van den Eijnden wrote:
>>
>>> Piebe,
>>>
>>> see:
>>>
>>> http://chameleon.maptools.org/bugzilla/show_bug.cgi?id=138
>>>
>>> Should be fixed Oct 2004.
>>>
>>> Best regards,
>>> Bart
>>>
>>> Bart van den Eijnden
>>> Syncera-ITSolutions
>>> Postbus 270
>>> 2600 AG  DELFT
>>>
>>> tel.nr.: 015-7512436
>>> email: BEN at Syncera-ITSolutions.nl
>>>
>>>  
>>>
>>>>>> Piebe de Vries <piebe.de.vries at geodan.nl> 04/19/05 12:33pm >>>
>>>>>>       
>>>>>
>>>
>>> My site uses a selectbox (like QuickZoom) in combination with 
>>> MapDHTML. The selectbox is located above the MapDHTML widget.
>>>
>>> All works fine in Mozilla, however, in Internet Explorer there is a 
>>> side effect. Selecting an option (or clicking the scroll bar) from 
>>> the selectbox when it is shown on top of the MapDHTML results in the 
>>> use of the active MapDHTML tool. For example if i-tool is selected 
>>> and the quickzoom is used it functions properly, but, in addition to 
>>> zooming,  a popup with the i-information appears. Similar with other 
>>> tools like magnification etc.
>>>
>>> Is this a known problem? Is there a work around?
>>>
>>> piebe
>>>
>>>
>>>
>>> _______________________________________________
>>> Chameleon mailing list
>>> Chameleon at lists.maptools.org 
>>> http://lists.maptools.org/mailman/listinfo/chameleon
>>>
>>>
>>>
>>>
>>>  
>>>
>>
>>
>>
>> _______________________________________________
>> Chameleon mailing list
>> Chameleon at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/chameleon
>>
>


-- 
Piebe de Vries
-------------------------------------
Geodan IT b.v.
President Kennedylaan 1
1079 MB Amsterdam (NL)

Tel: +31 (0)20 - 6925 151
Fax: +31 (0)20 - 5711 333
-------------------------------------
E-mail: piebe.de.vries at geodan.nl
Website: http://www.geodan.nl
Disclaimer: http://www.geodan.nl/disclaimer
-------------------------------------





More information about the Chameleon mailing list