Index: trunk/admin/editor/cmseditor/editor/filemanager/browser/default/js/fckxml.js =================================================================== diff -u -N -r1415 -r4961 --- trunk/admin/editor/cmseditor/editor/filemanager/browser/default/js/fckxml.js (.../fckxml.js) (revision 1415) +++ trunk/admin/editor/cmseditor/editor/filemanager/browser/default/js/fckxml.js (.../fckxml.js) (revision 4961) @@ -33,6 +33,46 @@ return new ActiveXObject("MsXml2.XmlHttp") ; } +FCKXml.prototype.PostUrl = function( urlToCall, variables, asyncFunctionPointer ) +{ + var oFCKXml = this ; + + var bAsync = ( typeof(asyncFunctionPointer) == 'function' ) ; + + var oXmlHttp = this.GetHttpRequest() ; + + oXmlHttp.open( "POST", urlToCall, true) ; + + if ( bAsync ) + { + oXmlHttp.onreadystatechange = function() + { + if ( oXmlHttp.readyState == 4 ) + { + oFCKXml.DOMDocument = oXmlHttp.responseXML ; + if ( oXmlHttp.status == 200 ) + asyncFunctionPointer( oFCKXml ) ; + else + alert( 'XML request error: ' + oXmlHttp.statusText + ' (' + oXmlHttp.status + ')' ) ; + } + } + } + oXmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); + oXmlHttp.send( variables ) ; + + if ( ! bAsync ) + { + if ( oXmlHttp.status == 200 ) + this.DOMDocument = oXmlHttp.responseXML ; + else + { + alert( 'XML request error: ' + oXmlHttp.statusText + ' (' + oXmlHttp.status + ')' ) ; + } + } +} + + + FCKXml.prototype.LoadUrl = function( urlToCall, asyncFunctionPointer ) { var oFCKXml = this ;