[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] news_admin/js/fckeditor/editor/filemanager/browser/d
From: |
skwashd |
Subject: |
[Phpgroupware-cvs] news_admin/js/fckeditor/editor/filemanager/browser/default/js common.js, 1.1 fckxml.js, 1.1 |
Date: |
Tue, 24 May 2005 16:32:00 +0200 |
Update of news_admin/js/fckeditor/editor/filemanager/browser/default/js
Added Files:
Branch: MAIN
common.js
fckxml.js
Log Message:
I am working on a much better version of news_admin, this is just a taste of
what is coming.
Adding FCKeditor, which has the following issues:
* Images and files support FCKd
* Spellcheck FCKing up
Didn't include non php code or samples other unneeded crap
====================================================
Index: common.js
/*
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2004 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/
*
* File Name: common.js
* Common objects and functions shared by all pages that compose the
* File Browser dialog window.
*
* Version: 2.0 RC3
* Modified: 2004-11-27 00:03:05
*
* File Authors:
* Frederico Caldeira Knabben (address@hidden)
*/
function AddSelectOption( selectElement, optionText, optionValue )
{
var oOption = document.createElement("OPTION") ;
oOption.text = optionText ;
oOption.value = optionValue ;
selectElement.options.add(oOption) ;
return oOption ;
}
var oConnector = window.parent.oConnector ;
var oIcons = window.parent.oIcons ;
====================================================
Index: fckxml.js
/*
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2004 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/
*
* 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.
*
* Version: 2.0 RC3
* Modified: 2004-11-26 23:55:13
*
* File Authors:
* Frederico Caldeira Knabben (address@hidden)
*/
var FCKXml = function()
{}
FCKXml.prototype.GetHttpRequest = function()
{
if ( window.XMLHttpRequest ) // Gecko
return new XMLHttpRequest() ;
else if ( window.ActiveXObject ) // IE
return new ActiveXObject("MsXml2.XmlHttp") ;
}
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 )
asyncFunctionPointer( oFCKXml ) ;
else
alert( 'XML request error: ' +
oXmlHttp.statusText + ' (' + oXmlHttp.status + ')' ) ;
}
}
}
oXmlHttp.send( null ) ;
if ( ! bAsync )
{
if ( oXmlHttp.status == 200 )
this.DOMDocument = oXmlHttp.responseXML ;
else
{
alert( 'XML request error: ' + oXmlHttp.statusText + '
(' + oXmlHttp.status + ')' ) ;
}
}
}
FCKXml.prototype.SelectNodes = function( xpath )
{
if ( document.all ) // 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 ( document.all ) // 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 ;
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] news_admin/js/fckeditor/editor/filemanager/browser/default/js common.js, 1.1 fckxml.js, 1.1,
skwashd <=
- Prev by Date:
[Phpgroupware-cvs] news_admin/js/fckeditor/editor/filemanager/browser/default/images/icons/32 cs.gif, 1.1 default.icon.gif, 1.1 dll.gif, 1.1 doc.gif, 1.1 bmp.gif, 1.1 avi.gif, 1.1 ai.gif, 1.1 exe.gif, 1.1 fla.gif, 1.1 mdb.gif, 1.1 mp3.gif, 1.1 pdf.gif, 1.1 ppt.gif, 1.1 js.gif, 1.1 jpg.gif, 1.1 gif.gif, 1.1 htm.gif, 1.1 html.gif, 1.1 rdp.gif, 1.1 zip.gif, 1.1 swf.gif, 1.1 xml.gif, 1.1 swt.gif, 1.1 xls.gif, 1.1 txt.gif, 1.1 vsd.gif, 1.1
- Next by Date:
[Phpgroupware-cvs] news_admin/js/fckeditor/editor/dialog/fck_image fck_image.js, 1.1
- Previous by thread:
[Phpgroupware-cvs] news_admin/js/fckeditor/editor/filemanager/browser/default/images/icons/32 cs.gif, 1.1 default.icon.gif, 1.1 dll.gif, 1.1 doc.gif, 1.1 bmp.gif, 1.1 avi.gif, 1.1 ai.gif, 1.1 exe.gif, 1.1 fla.gif, 1.1 mdb.gif, 1.1 mp3.gif, 1.1 pdf.gif, 1.1 ppt.gif, 1.1 js.gif, 1.1 jpg.gif, 1.1 gif.gif, 1.1 htm.gif, 1.1 html.gif, 1.1 rdp.gif, 1.1 zip.gif, 1.1 swf.gif, 1.1 xml.gif, 1.1 swt.gif, 1.1 xls.gif, 1.1 txt.gif, 1.1 vsd.gif, 1.1
- Next by thread:
[Phpgroupware-cvs] news_admin/js/fckeditor/editor/dialog/fck_image fck_image.js, 1.1
- Index(es):