マップがロードされると、このエラーalt text http://img239.imageshack.us/img239/6936/jserror.pngが発生します。その後、Open LayersのJavascript "unspecified error"
return (typeof(document.namespaces) != 'undefined');
、それが働いたが:
エラーは、このライン上の元、無修正OpenLayers.jsファイルにされています
return!!(document.namespaces);
私はそれを書き換える試してみました私はdocument.namespacesへのさらなる参照で同じ "不特定"のエラーを受け取ります:
if(!document.namespaces.olv){document.namespaces.add("olv",this.xmlns); ...
私はこれを書き換えてみました:
if(typeof(document.namespaces.olv) == 'undefined') { ...
が、私は同じ "不明なエラー" を取得します。
私はInternet Explorer(私は7でテスト済み)ではなく、Firefoxでこのエラーが発生します。
手がかりはありますか?
ありがとうございました。
あなたとすべての.onloadイベントを上書きすることはほとんど我々はそう$(ウィンドウ)のために代わりに選んだ、windows.onloadとFirefoxで問題があった – Art
を行うには良いことではありませんが.bind( "load"、function(){ – eclipse31