JohnLee
JohnLee is on the road.
posts - 5,comments - 0,trackbacks - 0

Have known AJAX for a very long time. But here I still want to write it down about how to create DOM Document at Client side.

1. document.implementation which is supported by Mozilla, Netscape etc
2. ActiveObject which is provided by MS

If you are using Mozilla, write code like this:

if (document.implementation && document.implementation.createDocument) {
  xmlDocument 
=  document.implementation.createDocument('','', null
);
}

If you are using MS, write code like this:
xmlDocument  =   new  ActiveObject( " MSXML.DOMDocument " );

Here list down the versions of MSXML:
MSXML.DOMDocument
MSXML2.DOMDocument
MSXML3.DOMDocument
MSXML4.DOMDocument
Microsoft.XmlDom
posted on 2007-01-25 11:41 JohnLee 阅读(120) 评论(0)  编辑  收藏 所属分类: Technology

只有注册用户登录后才能发表评论。


网站导航: