Hi Manuele

My experience is, that IE is very sensitive to javascript errors. For
example a left over comma like the last one below after "200000" will "kill"
IE with meaningless error messages, while Forefox, Google Chrome and Opera
don't care:

                        map = new OpenLayers.Map ("map", {
                                maxExtent: new OpenLayers.Bounds(x1,y1,x2,y2),
                                restrictedExtent:new 
OpenLayers.Bounds(x1,y1,x2,y2),
                                maxResolution: 200000,
                        } );

Missing semicolons may have the same effect.

I have several times corrected errors ussing  http://www.jslint.com/
http://www.jslint.com  to check my javascript code. Just copy and paste your
whole html page into the appropriate window and press the JSLint button
(which ironically leads to a Javascript error in IE on my PC! - so do it in
Firefox or something else)

Regards Morten


manuele wrote:
> 
> Hi *,
> can somebody help to understand why this[1] code is correctly 
> intrerpreted from some browsers and not from others... in particular I 
> have problem with IE (on windows) and iceweesel (on debian/linux) and 
> not with firefox on windows, Chrome on linux and Epiphany on linux
> 
> thank you very mutch in advance
> 
>       Manuele
> 
> 
> 


--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/different-behaviours-within-browsers-tp6393788p6397975.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to