[OpenLayers-Users] Incompativili with IE 6
Kenneth Skovhede, GEOGRAF A/S
ks at geograf.dk
Mon Jun 23 10:05:09 EDT 2008
Most likely it means that the browser is unable to parse your javascript.
This results in a call to a missing function "init".
I'm guessing that you have code like this:
var x = {
x: 1,
y = 2,
}
Notice the trailing "," after 2.
Firefox accepts it, IE does not.
If you can't find the error, you might want to try installing a
Javascript debugger for IE (like Visual Studio).
Regards, Kenneth Skovhede, GEOGRAF A/S
David Martinez Morata skrev:
> Hi list!
>
> I'm developing a Openlayers environement and I fund a problem. I used
> FireFox v2 to develop and every thing it's OK but when I try the URL
> in InternetExplorer v6 I have and error .
> They says the error it's in <body onload="init()"> but I don't have
> any Idea of the problem!
> Can enayone help me please?
> Thanks
>
>
> this is my code:
> <!DOCTYPE html "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <title>Test OpenLayers</title>
> <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
>
>
>
> scripts
>
>
>
> </script>
> </head>
> <body onload="init()">
> <div id="header">
> <h1 id="title">Test OpenLayers</h1>
> <form action="#" onsubmit="showAddress(this.address.value,
> this.countrycode.value); return false">
> <p>Recherchez un adresse: <input type="text" size="60"
> id="address" value="" />
> <input type="submit"
> onclick="showAddress(document.getElementById('address').value); return
> false;" value="Go!" />
> </p>
> </form>
> </div>
> <div style="width:100%; height:85%" id="map"></div>
> </body>
> </html>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080623/98f0b38c/attachment.html
More information about the Users
mailing list