IE8에서 '문서'가 오류이거나 객체가 아닙니다.'문서'가 null이거나 객체가 아닙니다.
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' is null or not an object
Line: 111
Char: 5
Code: 0
URI: http://foo/f2/Teste.html
IE를 제외한 모든 브라우저가 작동합니다.
<body>
<div id="map" style="width: 400px; height: 650px;"></div>
<script type="text/javascript">
var ActiveXObject;
var Parsed = [[]];
var txtFile;
하고,
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
});
내가 .getElemntByID ('')의 문제했지만 올바르게지도에 할당있어 기억하는 유일한 것은.
무엇이 문제입니까? Source Code
'var ActiveXObject; '이 줄은 소스에 없지만 샘플에 있습니다 ... 제거하려고 했습니까? 그러나 오류와 관련이없는 것처럼 보이지만 일부 코드가 실패하게됩니다. – plalx
나는 그것이 그랬다고 생각한다! JSlint가 말한대로 코드 작업을 시도하고 그 변수를 초기화했다. 문제는 이전 버전으로 돌아가지만 http://stackoverflow.com/questions/16354566/unexpected-call-with-google-maps-in-ie8. 인터넷 익스플로러는 고통입니다. – M1nga