Hi Bart

Do you know the reason of the failure on IE6? IE6 bug? Your patch
doesn't solve your problem but provides better error handling, right?
Maybe an error message should be output to the console in case of
serialization failure. Eric

2008/10/29, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> Hi list,
>
> I've got an object (with a multipolygon node specifically) which fails
> (Object doesn't support this action) to serialize properly to JSON in IE6.
> In Firefox it works fine. This is both with OpenLayers.Format.JSON as well
> as the ExtJS JSON encoder btw.
>
> In order to fix is, I've put a try catch around the statement which
> determines the valueJSON:
>
> +                    try {
>                      valueJSON =
> OpenLayers.Format.JSON.prototype.write.apply(this,
>                                                      [object[key],
> this.pretty]);
> +                    } catch (err) { valueJSON = null; }
>
> Is this something for trunk, or do people see potential issues with such a
> change?
>
> Best regards,
> Bart
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://openlayers.org/mailman/listinfo/dev
>
_______________________________________________
Dev mailing list
[email protected]
http://openlayers.org/mailman/listinfo/dev

Reply via email to