[OpenLayers-Users] Problem with <body onload="init()"> in WFS-T.html

dolphintroop thymeland at hotmail.com
Mon Feb 25 00:10:41 PST 2013


I just find a solution from stackoverflow which provided by Rob W as below:
Instead of using the onload attribute of the body tag, you can also add the
following code within the <script> tags:

if(window.addEventListener) window.addEventListener("load", init, true);
else window.onload = init;

and it works for my eclipse+tomcat+winxp environment.





--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Problem-with-body-onload-init-in-WFS-T-html-tp5036095p5036563.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list