javascript - 'document' is null or not an object -


ie8 giving me error of 'document' null or not object.

user agent: mozilla/4.0 (compatible; msie 7.0; windows nt 5.1; trident/4.0; .net clr 1.1.4322; .net clr 2.0.50727; infopath.3) timestamp: fri, 3 may 2013 10:54:06 utc   message: 'document' null or not object line: 111 char: 5 code: 0 uri: http://foo/f2/teste.html 

all browsers work except ie.

<body> <div id="map" style="width: 400px; height: 650px;"></div>  <script type="text/javascript"> var activexobject; var parsed = [[]]; var txtfile; 

and,

var map = new google.maps.map(document.getelementbyid('map'), {     zoom: 7,     center: new google.maps.latlng(39.50, -8.37),     disabledefaultui: true,     maptypeid: google.maps.maptypeid.roadmap }); 

the thing remember problem .getelemntbyid('') it's correctly assigned map.

what seems problem?

full code here : source code

you need include excanvas.js in ie: http://code.google.com/p/explorercanvas/downloads/list luck , enjoy

this written google , allows canvas display in ie8 , lower


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -