[mapguide-trac] #368: Upgrad sarissa and avoid MSXML blocking ActiveX in IE 7

MapGuide Open Source trac_mapguide at osgeo.org
Mon Dec 10 09:09:40 EST 2007


#368: Upgrad sarissa and avoid MSXML blocking ActiveX in IE 7
---------------------------+------------------------------------------------
   Reporter:  ksgeograf    |       Owner:                           
       Type:  defect       |      Status:  new                      
   Priority:  medium       |   Milestone:  2.0                      
  Component:  AJAX Viewer  |     Version:  2.0.0                    
   Severity:  minor        |    Keywords:  sarissa ie7 MSXML blocked
External_id:               |  
---------------------------+------------------------------------------------
 In ajaxmappane.templ, line 2512 the following code is found:
 {{{
 function CreateRequestHandler()
 {
     if(msie)
         return new ActiveXObject("Microsoft.XMLHTTP");
     else
         return new XMLHttpRequest();
 }
 }}}
 This does not work in IE 7, where ActiveX is disabled.
 IE 7 has a built in XMLHttpRequest so the specialization does not make
 sense for IE 7.
 Further, the included Sarissa includes a wrapper, so IE 5 & 6 can also use
 a XMLHttpRequest without the special case.
 In short, the above code can be reduced to:
 {{{
 function CreateRequestHandler()
 {
         return new XMLHttpRequest();
 }
 }}}

 I have also tested the most recent sarissa (0.9.9) and it works without
 modification. The current version is 0.9.6.1.

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/368>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list