MapTools.org

[Chameleon] multiple zoomin before map arrives

Paul Spencer spencer@dmsolutions.ca
Mon, 12 Jan 2004 14:58:24 -0500
Bart,

I will try to resolve this issue in a more generic way during the 
javascript rework.

Cheers,

Paul

Bart van den Eijnden wrote:

> Hi Paul,
> 
> I fixed it in PanMap the way you suggested.
> 
> For the UpdateMap I needed another solution, only submit if the value 
> doesn't equal "1":
> 
> function {$szJsFunctionName}()
> {
>     if ({$this->mszHTMLForm}.UPDATE_MAP.value != "1")
>     {
>         {$this->mszHTMLForm}.UPDATE_MAP.value = "1";
>         {$this->mszHTMLForm}.submit();
>         return;
>     }
> }
> 
> Ofcourse this is not full-proof, because when a user clicks the 
> RemoveLayer tool, and after that immediately the UpdateMap button, there 
> is still the same problem.
> 
> But this rules out the chance of running into it a lot.
> 
> Thanks!
> 
> Best regards,
> Bart
> 
> On Mon, 12 Jan 2004 13:08:11 -0500, Paul Spencer <pagameba@magma.ca> wrote:
> 
>> Bart,
>>
>> I would suggest that you search the chameleon code for 
>> document.submit() calls and place the following code just before the 
>> submit:
>>
>> document.onmousemove = null;
>> document.onmouseup = null;
>> document.onmousedown = null;
>>
>> Cheers,
>>
>> Paul
>>
>> bartvde@xs4all.nl wrote:
>>
>>> Hi Paul,
>>>
>>> this works for the zoomin, zoomout en recentre.
>>>
>>> But not for the update map button and the pan. Do you know a quick
>>> solution for those as well?
>>>
>>> Thanks.
>>>
>>> Best regards,
>>> Bart
>>>
>>>
>>>> Bart,
>>>>
>>>> I'm not sure how this would help?  My feeling is that submit of the 
>>>> page
>>>> actually gets conflicted some how because it happens twice.
>>>>
>>>> Try the attached file to see if it fixes your problem.  What I did was
>>>> to explicitly cancel the event handlers just before the submit.
>>>>
>>>> Cheers,
>>>>
>>>> Paul
>>>>
>>>> bartvde@xs4all.nl wrote:
>>>>
>>>>
>>>>> Hi Paul,
>>>>>
>>>>> I checked and you're right that this is an IE only issue (like many
>>>>> others
>>>>> ofcourse :-( ).
>>>>>
>>>>> I found a possible solution but don't know exactly where to add 
>>>>> this to
>>>>> Chameleon, perhaps you can point me to the right widget/piece of 
>>>>> code to
>>>>> implement this, as this is a "killing bug" for us since our customer
>>>>> only
>>>>> works with IE 6.
>>>>>
>>>>> The solution is at:
>>>>> http://www.insidedhtml.com/tips/backend/ts04/page2.asp
>>>>>
>>>>> Thanks in advance.
>>>>>
>>>>> Best regards,
>>>>> Bart
>>>>>
>>>>>
>>>>>
>>>>>> Bart,
>>>>>>
>>>>>> I think this is an issue with IE.  I have noticed this in 
>>>>>> chameleon but
>>>>>> also other applications I think.  I have never had the problem in
>>>>>> Mozilla (that I am aware of).  One possible cause could be that the
>>>>>> mouse events are still processed after a submit?  If this is the case
>>>>>> then the new javascript framework should be designed to allow event
>>>>>> handling to be turned off on a page submit.  I don't know if this 
>>>>>> will
>>>>>> fix the problem.
>>>>>>
>>>>>> Cheers,
>>>>>>
>>>>>> Paul
>>>>>>
>>>>>> bartvde@xs4all.nl wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>> Hi list,
>>>>>>>
>>>>>>> when zooming in on the map, sometimes users get impatient (at 
>>>>>>> least a
>>>>>>> colleague of mine who just tested the application .... :-( ) and 
>>>>>>> click
>>>>>>> on
>>>>>>> the map again before the map update has finished. In this case the
>>>>>>> Chameleon client application will "hang".
>>>>>>>
>>>>>>> The same thing happens when first clicking in the map with the 
>>>>>>> zoomin
>>>>>>> tool, and then drawing a box before the map update finishes.
>>>>>>>
>>>>>>> Also when pressing the "update map" button twice too soon, the same
>>>>>>> thing
>>>>>>> happens.
>>>>>>>
>>>>>>> Is there any way to prevent this behaviour? It is a pretty serious
>>>>>>> issue
>>>>>>> in my opinion, as the result can be that the application hangs.
>>>>>>>
>>>>>>> Best regards,
>>>>>>> Bart
>>>>>>> _______________________________________________
>>>>>>> Chameleon mailing list
>>>>>>> Chameleon@lists.maptools.org
>>>>>>> http://lists.maptools.org/mailman/listinfo/chameleon
>>>>>>>
>>>>>>
>>>>>> -- 
>>>>>> -----------------------------------------------------------------
>>>>>> |Paul Spencer                           spencer@dmsolutions.ca    |
>>>>>> |-----------------------------------------------------------------|
>>>>>> |Applications & Software Development                              |
>>>>>> |DM Solutions Group Inc                 http://www.dmsolutions.ca/|
>>>>>> -----------------------------------------------------------------
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>> -- 
>>>>  -----------------------------------------------------------------
>>>> |Paul Spencer                           spencer@dmsolutions.ca    |
>>>> |-----------------------------------------------------------------|
>>>> |Applications & Software Development                              |
>>>> |DM Solutions Group Inc                 http://www.dmsolutions.ca/|
>>>>  -----------------------------------------------------------------
>>>>
>>>
>>>
>>> _______________________________________________
>>> Chameleon mailing list
>>> Chameleon@lists.maptools.org
>>> http://lists.maptools.org/mailman/listinfo/chameleon
>>>
>>
> 
> 
> 

-- 
  -----------------------------------------------------------------
|Paul Spencer                           spencer@dmsolutions.ca    |
|-----------------------------------------------------------------|
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
  -----------------------------------------------------------------



This archive was generated by Pipermail.