[fusion-trac] #322: Query: Behavior of Clear and Checkbox for Spatial Filter is not consistent

Fusion trac_fusion at osgeo.org
Tue Dec 8 02:28:13 EST 2009


#322: Query: Behavior of Clear and Checkbox for Spatial Filter is not consistent
---------------------+------------------------------------------------------
 Reporter:  jennyhe  |         Owner:  madair 
     Type:  defect   |        Status:  closed 
 Priority:  P2       |     Milestone:  Future 
Component:  Widgets  |       Version:  1.1.1  
 Severity:  Major    |    Resolution:  fixed  
 Keywords:           |   External_id:  1276830
    State:  New      |       Browser:  All    
       Os:  All      |  
---------------------+------------------------------------------------------
Comment (by christinebao):

 QA found the patch
 http://trac.osgeo.org/fusion/attachment/ticket/322/Fix322.patch fixed
 Firefox, Chrome and Safari, but IE still have this problem. After user
 uncheck "Spatial Filter" checkbox, the digitization is not cleared.

 This is because the function OnToggleSpatialFilter() is not triggered
 after user uncheck the checkbox. OnChange() event is used to register
 OnToggleSpatialFilter():[[BR]]

 {{{
 <tr><td class="SubTitle"><input class="Ctrl" type="checkbox"
 onChange="OnToggleSpatialFilter()" id="spatialFilter">&nbsp;Spatial
 Filter</td></tr>
 }}}
 [[BR]]
 However IE only fires the onchange event when the checkbox loses the
 focus, so it's not triggered immediately. To behave expectedly in IE,
 OnClick() should be used.

 A good website to check these differences:
 http://krijnhoetmer.nl/stuff/javascript/checkbox-onchange/

-- 
Ticket URL: <http://trac.osgeo.org/fusion/ticket/322#comment:5>
Fusion <http://trac.osgeo.org/fusion>
Fusion is a web-mapping application development framework for MapServer and MapGuide OS.


More information about the fusion-trac mailing list