2006/4/13, Andriansah <[EMAIL PROTECTED]>:
> jadi mozilla implemented microsoft xml parser?  mungkin karena ini
> opera n konqueror blom kompatibel

Nggak juga. Mozilla pake XMLHTTPRequest yang standar. Microsoft pake
ActiveX dan diperbaharui lagi dengan XMLhttp.

Tapi teknologi server request yang jadi background procress di browser
itu yang mempelopori ya perusahaan tercinta milik Bang Bill Gates itu.

Nih contoh initial scriptnya:
(nyomot dari http://jibbering.com/2002/4/httprequest.html)
kliatan kan bahwa kalo browser IE, pake object dari ActiveX. Jika
bukan IE, maka pake XMLHttpRequest object standar. Kalo nggak punya
juga, undef.

var xmlhttp=false;
/[EMAIL PROTECTED] @*/
/[EMAIL PROTECTED] (@_jscript_version >= 5)
// JScript gives us Conditional compilation, we can cope with old IE versions.
// and security blocked creation of the objects.
 try {
  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
 } catch (e) {
  try {
   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (E) {
   xmlhttp = false;
  }
 }
@end @*/
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
        try {
                xmlhttp = new XMLHttpRequest();
        } catch (e) {
                xmlhttp=false;
        }
}
if (!xmlhttp && window.createRequest) {
        try {
                xmlhttp = window.createRequest();
        } catch (e) {
                xmlhttp=false;
        }
}




والسلام عليكم ورحمة الله وبركاته

Salam,
A. Uliansyah
Current Project: http://groups.yahoo.com/group/id-kutub
YM: beta_andri
http://auliansyah.is-a-geek.org

Kirim email ke