Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
fckxml.js
Package: shihua.rar [view]
Upload User: zghglow
Upload Date: 2022-08-09
Package Size: 27227k
Code Size: 3k
Category:
WEB(ASP,PHP,...)
Development Platform:
JavaScript
- /*
- * FCKeditor - The text editor for internet
- * Copyright (C) 2003-2006 Frederico Caldeira Knabben
- *
- * Licensed under the terms of the GNU Lesser General Public License:
- * http://www.opensource.org/licenses/lgpl-license.php
- *
- * For further information visit:
- * http://www.fckeditor.net/
- *
- * "Support Open Source software. What about a donation today?"
- *
- * File Name: fckxml.js
- * Defines the FCKXml object that is used for XML data calls
- * and XML processing.
- * This script is shared by almost all pages that compose the
- * File Browser frameset.
- *
- * File Authors:
- * Frederico Caldeira Knabben (fredck@fckeditor.net)
- */
- var FCKXml = function()
- {}
- FCKXml.prototype.GetHttpRequest = function()
- {
- // Gecko / IE7
- if ( typeof(XMLHttpRequest) != 'undefined' )
- return new XMLHttpRequest() ;
- // IE6
- try { return new ActiveXObject("Msxml2.XMLHTTP") ; }
- catch(e) {}
- // IE5
- try { return new ActiveXObject("Microsoft.XMLHTTP") ; }
- catch(e) {}
- }
- FCKXml.prototype.LoadUrl = function( urlToCall, asyncFunctionPointer )
- {
- var oFCKXml = this ;
- var bAsync = ( typeof(asyncFunctionPointer) == 'function' ) ;
- var oXmlHttp = this.GetHttpRequest() ;
- oXmlHttp.open( "GET", urlToCall, bAsync ) ;
- if ( bAsync )
- {
- oXmlHttp.onreadystatechange = function()
- {
- if ( oXmlHttp.readyState == 4 )
- {
- oFCKXml.DOMDocument = oXmlHttp.responseXML ;
- if ( oXmlHttp.status == 200 || oXmlHttp.status == 304 )
- asyncFunctionPointer( oFCKXml ) ;
- else
- alert( 'XML request error: ' + oXmlHttp.statusText + ' (' + oXmlHttp.status + ')' ) ;
- }
- }
- }
- oXmlHttp.send( null ) ;
- if ( ! bAsync )
- {
- if ( oXmlHttp.status == 200 || oXmlHttp.status == 304 )
- this.DOMDocument = oXmlHttp.responseXML ;
- else
- {
- alert( 'XML request error: ' + oXmlHttp.statusText + ' (' + oXmlHttp.status + ')' ) ;
- }
- }
- }
- FCKXml.prototype.SelectNodes = function( xpath )
- {
- if ( navigator.userAgent.indexOf('MSIE') >= 0 ) // IE
- return this.DOMDocument.selectNodes( xpath ) ;
- else // Gecko
- {
- var aNodeArray = new Array();
- var xPathResult = this.DOMDocument.evaluate( xpath, this.DOMDocument,
- this.DOMDocument.createNSResolver(this.DOMDocument.documentElement), XPathResult.ORDERED_NODE_ITERATOR_TYPE, null) ;
- if ( xPathResult )
- {
- var oNode = xPathResult.iterateNext() ;
- while( oNode )
- {
- aNodeArray[aNodeArray.length] = oNode ;
- oNode = xPathResult.iterateNext();
- }
- }
- return aNodeArray ;
- }
- }
- FCKXml.prototype.SelectSingleNode = function( xpath )
- {
- if ( navigator.userAgent.indexOf('MSIE') >= 0 ) // IE
- return this.DOMDocument.selectSingleNode( xpath ) ;
- else // Gecko
- {
- var xPathResult = this.DOMDocument.evaluate( xpath, this.DOMDocument,
- this.DOMDocument.createNSResolver(this.DOMDocument.documentElement), 9, null);
- if ( xPathResult && xPathResult.singleNodeValue )
- return xPathResult.singleNodeValue ;
- else
- return null ;
- }
- }