View Full Version : يه سوال
samane658
چهارشنبه 25 اردیبهشت 1387, 09:32 صبح
كسي مي دونه error زير واسه چيه؟؟؟؟؟؟؟
Error updating JScript IntelliSense: E:\my documents\programming\test_heirarchy\java\ZXML.JS: 'oMozDocument.prototype' is null OR -an object
با تشكر قبلي
KavoshGar_ir
چهارشنبه 25 اردیبهشت 1387, 16:52 عصر
كسي مي دونه error زير واسه چيه؟؟؟؟؟؟؟
Error updating JScript IntelliSense: E:\my documents\programming\test_heirarchy\java\ZXML.JS: 'oMozDocument.prototype' is null OR -an object با تشكر قبلي
ببینید مقدارoMozDocument درست تعریف و مقداردهی شده ؟ شاید مثال زیر راهگشا باشد ...
//Code to make Mozilla DOM documents act more like MS DOM documents.
var oMozDocument (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27oMozDocument%27%29) = null (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27null%27%29);
if (typeof XMLDocument (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27XMLDocument%27%29) != "undefined") {
oMozDocument (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27oMozDocument%27%29) = XMLDocument (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27XMLDocument%27%29);
} else if (typeof Document (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27Document%27%29) != "undefined") {
oMozDocument (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27oMozDocument%27%29) = Document (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27Document%27%29);
}
if (oMozDocument (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27oMozDocument%27%29) && !window (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27window%27%29).opera (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27opera%27%29)) {
oMozDocument (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27oMozDocument%27%29).prototype (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27prototype%27%29).readyState (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27readyState%27%29) = 0;
oMozDocument (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27oMozDocument%27%29).prototype (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27prototype%27%29).onreadystatec hange (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27onreadystatechange%27%29) = null (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27null%27%29);
oMozDocument (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27oMozDocument%27%29).prototype (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27prototype%27%29).__changeReady State__ (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27__changeReadyState__%27%29) = function (iReadyState (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27iReadyState%27%29)) {
this.readyState (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27readyState%27%29) = iReadyState (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27iReadyState%27%29);
if (typeof this.onreadystatechange (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27onreadystatechange%27%29) == "function") {
this.onreadystatechange (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27onreadystatechange%27%29)();
}
};
oMozDocument (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27oMozDocument%27%29).prototype (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27prototype%27%29).__initError__ (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27__initError__%27%29) = function () {
this.parseError (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27parseError%27%29).errorCode (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27errorCode%27%29) = 0;
this.parseError (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27parseError%27%29).filepos (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27filepos%27%29) = -1;
this.parseError (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27parseError%27%29).line (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27line%27%29) = -1;
this.parseError (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27parseError%27%29).linepos (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27linepos%27%29) = -1;
this.parseError (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27parseError%27%29).reason (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27reason%27%29) = null (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27null%27%29);
this.parseError (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27parseError%27%29).srcText (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27srcText%27%29) = null (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27null%27%29);
this.parseError (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27parseError%27%29).url (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27url%27%29) = null (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27null%27%29);
};
oMozDocument (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27oMozDocument%27%29).prototype (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27prototype%27%29).__checkForErr ors__ (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27__checkForErrors__%27%29) = function () {
if (this.documentElement (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27documentElement%27%29).tagName (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27tagName%27%29) == "parsererror") {
var reError (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27reError%27%29) = />([\s (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27s%27%29)\S (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27S%27%29)]*?)Location (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27Location%27%29):([\s (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27s%27%29)\S (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27S%27%29)]*?)Line (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27Line%27%29) Number (\d (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27d%27%29)+), Column (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27Column%27%29) (\d (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27d%27%29)+):<sourcetext (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27sourcetext%27%29)>([\s (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27s%27%29)\S (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27S%27%29)]*?)(?:\-*\^)/;
reError (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27reError%27%29).test (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27test%27%29)(this.xml (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27xml%27%29));
this.parseError (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27parseError%27%29).errorCode (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27errorCode%27%29) = -999999;
this.parseError (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27parseError%27%29).reason (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27reason%27%29) = RegExp.$1;
this.parseError (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27parseError%27%29).url (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27url%27%29) = RegExp.$2;
this.parseError (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27parseError%27%29).line (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27line%27%29) = parseInt (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27parseInt%27%29)(RegExp.$3);
this.parseError (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27parseError%27%29).linepos (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27linepos%27%29) = parseInt (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27parseInt%27%29)(RegExp.$4);
this.parseError (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27parseError%27%29).srcText (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27srcText%27%29) = RegExp.$5;
}
};
oMozDocument (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27oMozDocument%27%29).prototype (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27prototype%27%29).__load__ (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27__load__%27%29) = oMozDocument (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27oMozDocument%27%29).prototype (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27prototype%27%29).load (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27load%27%29);
oMozDocument (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27oMozDocument%27%29).prototype (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27prototype%27%29).load (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27load%27%29) = function (sURL (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27sURL%27%29)) {
this.__initError__ (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27__initError__%27%29)();
this.__changeReadyState__ (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27__changeReadyState__%27%29)(1) ;
this.__load__ (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27__load__%27%29)(sURL (http://javascript%3Cb%3E%3C/b%3E:searchRef%28%27sURL%27%29));
};
samane658
پنج شنبه 26 اردیبهشت 1387, 09:54 صبح
كل اين كدي رو نوشتيد تو فايل ZXML.JS هست. اونو هم وارد كردم. ولي بازم error ميده.
اين جوري وارد كردم:
<script language="javascript" src="bin/ZXML.JS" type="text/javascript"> </script>
vBulletin® v4.2.5, Copyright ©2000-1404, Jelsoft Enterprises Ltd.