Discussion:
Object Orientated JS and new Transport Driver Definition
Christian Stocker
2002-10-09 15:39:13 UTC
Permalink
Hi

During my holidays (yo, yo, I know...) i started converting the now
completely procedural BXE to something more Object oriented. It was on
my todo list since months (and put on higher prio after some hints by
Brian), but never got on it,because 1) I never looked into OO-JS before
and 2) i was too busy with hunting bugs and features :) It's only a
start right now and there's still a lot to do, but it should make the
code a lot cleaner (hopefully)

Some introductions for OO-JS can be found at:

http://www.webmasterbase.com/article/473/91
http://devedge.netscape.com/viewsource/2001/oop-javascript/

One of the first things converted to OO was the Transport Driver stuff.
See bxe/js/http.js for an example. There is not much to say about it,
the class just needs a load and a save method to work :)

chregu
--
bx-editor-dev mailing list
bx-editor-***@lists.bitflux.ch
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev
Michael Slattery
2002-10-09 15:51:12 UTC
Permalink
This sounds great!

I wish to add a Mozilla SOAP transport so Bitflux will communicate with
the Bricolage Perl CMS. Maybe this will make the task easier!
If anyone here has played with SOAP and Bitflux, please share your
thoughts/issues/warnings...

Cheers,
Mike
Post by Christian Stocker
Hi
During my holidays (yo, yo, I know...) i started converting the now
completely procedural BXE to something more Object oriented. It was on
my todo list since months (and put on higher prio after some hints by
Brian), but never got on it,because 1) I never looked into OO-JS before
and 2) i was too busy with hunting bugs and features :) It's only a
start right now and there's still a lot to do, but it should make the
code a lot cleaner (hopefully)
http://www.webmasterbase.com/article/473/91
http://devedge.netscape.com/viewsource/2001/oop-javascript/
One of the first things converted to OO was the Transport Driver stuff.
See bxe/js/http.js for an example. There is not much to say about it,
the class just needs a load and a save method to work :)
chregu
--
bx-editor-dev mailing list
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev
--
bx-editor-dev mailing list
bx-editor-***@lists.bitflux.ch
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev
Christian Stocker
2002-10-09 16:12:16 UTC
Permalink
(sorry for my email-flooding a few moments ago, but i didn't sent my
answerss to the list but only to Holger and therefore i had to forward
all of them to the list again... it must be the jetlag :) )
Post by Michael Slattery
This sounds great!
I wish to add a Mozilla SOAP transport so Bitflux will communicate with
the Bricolage Perl CMS. Maybe this will make the task easier!
If anyone here has played with SOAP and Bitflux, please share your
thoughts/issues/warnings...
Look at http.js and wyona.js from the cvs or from
http://bitflux.org/download/bitfluxeditor-latest.tgz

It should'nt be that hard to adjust and if you have questions, just ask.

chregu
--
bx-editor-dev mailing list
bx-editor-***@lists.bitflux.ch
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev
Brian King
2002-10-09 23:10:14 UTC
Permalink
Post by Michael Slattery
...
I wish to add a Mozilla SOAP transport so Bitflux will communicate with
the Bricolage Perl CMS. Maybe this will make the task easier!
If anyone here has played with SOAP and Bitflux, please share your
thoughts/issues/warnings...
Not bitflux and SOAP per se, but you will find information about Mozilla
and SOAP scripts support at:

http://lxr.mozilla.org/mozilla/source/extensions/xmlextras/docs/Soap_Scripts_in_Mozilla.html

... and some examples in one of the chapters of the O'Reilly book just
published, which is available online under the Open Publication License:

http://books.mozdev.org/chapters/ch12.html

- Brian
--
bx-editor-dev mailing list
bx-editor-***@lists.bitflux.ch
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev
Christian Stocker
2002-10-09 23:32:49 UTC
Permalink
Just as a sidenote to this discussion:

To allow a later porting to MSIE, i will most presumably use:
http://bclary.com/xbProjects-docs/xbXMLHttpRequest/
to allow CrossBrowser xmlHTTPRequests. bclary seems to have more useful
stuff, for example xbObjects for more/easier OO stuff in JS and maybe I
will use that, too.

If anyone knows of other (better?) libraries which do similar stuff,
please let me know :)

christian
Post by Brian King
Post by Michael Slattery
...
I wish to add a Mozilla SOAP transport so Bitflux will communicate with
the Bricolage Perl CMS. Maybe this will make the task easier!
If anyone here has played with SOAP and Bitflux, please share your
thoughts/issues/warnings...
Not bitflux and SOAP per se, but you will find information about Mozilla
http://lxr.mozilla.org/mozilla/source/extensions/xmlextras/docs/Soap_Scripts_in_Mozilla.html
... and some examples in one of the chapters of the O'Reilly book just
http://books.mozdev.org/chapters/ch12.html
- Brian
--
bx-editor-dev mailing list
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev
--
bx-editor-dev mailing list
bx-editor-***@lists.bitflux.ch
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev
Loading...