Hi
On 21.7.2005 12:56 Uhr, Ludovic Gasc wrote:
> Hi,
>
> I'm creating a new transport for bit flux editor that I've called "form".
>
> The idea :
> I've a web page with a form and field hidden that contains the xml code.
> When I click on a link, a javascript function is launched and a popup window
> appears that contains bit flux editor.
> My transport reads the hidden field on parent page with xml code.
> When I save the xml file, the hidden field is updated.
You can't just return the string with the XML. You have to call
td.loadCallback(reqObj)
And reqObj is a simple Object with some information. Look at
mozile/td/http.js and the load method there
chregu
>
> But my transport don't work, bit flux editor stopped on load at : "Load
> XML ..."
>
> I've attached javascript file.
>
> Do you have any idea to resolve this ?
>
> Thanks very much.
>
>
> ------------------------------------------------------------------------
>
> /* you can extend the webdav driver here */
>
> function mozileTransportDriver_form() {
>
> }
>
> mozileTransportDriver_form.prototype= new mozileTransportDriver_http();
>
> mozileTransportDriver_form.prototype.load = function(filename, td, async) {
> return window.opener.document.mettre_en_ligne.corps.value;
> }
>
>
> mozileTransportDriver_form.prototype.save = function(filename, content, td)
> {
> }
>
--
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71
http://www.bitflux.ch | chregu@xxxxxxxxxx | gnupg-keyid 0x5CE1DECB
--
bx-editor-dev mailing list
bx-editor-dev@xxxxxxxxxxxxxxxx
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev
|