[OpenLayers-Users] wfs-t not working in IE ?

Lance Dyas lancelot at inetnebr.com
Sun Apr 1 14:46:02 EDT 2007


Louvy Joseph wrote:
> I am hitting the problems even before control comes to XMLSerializer. I 
> am seeing issues in createElementNS().
Must be testing IE6
>  I started replacing all the 
> createElementNS() calls with createElement() 
You might check if createElementNS is defined and switch to the other if 
it is not.
>  but then I started hitting 
> at appendChild(). Is there a generic way around createElementNS() & 
> appendChild() calls?
>   
appendChild is generic I believe
> BTW, how do you guys debug the Javascript in IE? (Firebug was so breeze 
> and gosh, IE debugging is so painful).
>
>   
I use Visual Studio 2005 for this still not totally pretty..
> Thanks
> Louvy
>
> Christopher Schmidt wrote:
>   
>> On Sat, Mar 31, 2007 at 10:17:32PM -0700, Louvy Joseph wrote:
>>   
>>     
>>> Hi folks,
>>>
>>> I can get the wfs-t.html example work fine in firefox against my 
>>> geoserver but it fails in IE.  The status bar at the bottom on IE 7 says 
>>> "Error on page". When I click it, it shows error on vague line number 
>>> saying "Object does not support this property or method". Line number 
>>> does not seem to match where the actual error is found.
>>>
>>> Is there a known issue with IE & wfs-t insert transaction? How do I 
>>> debug javascript in IE?
>>>     
>>>       
>> "# Internet Explorer does not have a built in XML Serializer, so it can
>> not save WFS-T payloads to a server via the 'commit' method on a WFS
>> layer." 
>>   --  http://trac.openlayers.org/wiki/Release/2.4/Notes
>>
>> "IE has no built in XML Serializer. The
>> OpenLayers.Ajax.serializeXMLToString function will fail in IE. We should
>> choose a library which has an XML Serializer with namespace support in
>> it and allow users to use it with IE to add serialize support."
>>
>>  -- http://trac.openlayers.org/ticket/535
>>
>> I spent several hours looking for an XML Serializer for IE, and couldn't
>> find one. It's possible I missed something. If you have one loaded, the
>> function to modify is OpenLayers.Ajax.serializeXMLToString -- it should
>> accept an XML DOM object, and return a string. If you can make this
>> happen on IE, there are no other known problems with the WFS-T in
>> Internet Explorer.  
>>
>> Regards,
>>   
>>     
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
> .
>
>   




More information about the Users mailing list