Ulrich Schreiner schrieb:
hi,

i really do not know if jsolait is better then your code. they publish the lib under the LGPL. i like their code, but is mozart better than beethoven? well this year mozart has a little advantage ... :-)

;)


the problem is the qooxdoo-"pad" extension. last week this function was renamed from "padding" to "pad" and so the "pad"-extension from jsolait (http://jsolait.net/browser/trunk/jsolait/jsolait.js) was overwritten. since the "pad" function is used in the formatting-logic of jsolait, it does only work with their own solution.

i don't know how to handle such collisions. perhaps every library should use prefixes for "their" extensions such as "qx_pad" and "jsolait_pad". really ugly i know, but otherwise the combination of libraries is really hard.

or one simple extension "toJSOLAITString" respectivley "toQXString" which returns an instance of a special class with the given methods.

well not a big problem at the moment. and not really a qooxdoo problem but rather a problem of every JS-library which defines extensions.

Well, normally the most methods between different libraries in this area returns comparable results. In this case "pad" is implemented completely different. These prototype additions to common objects are sometimes problematic between different libraries. Some libs omit these things, but it is much uglier to do some namespace.ext.string.pad(mystring, 2), compared to mystring.pad(2).

Sebastian


</usc>

Sebastian Werner wrote:
Ulrich Schreiner schrieb:
hi,

anyone using jsolait and qooxdoo in the same project?

jsolait (http://jsolait.net) has some nice features, including JSON-RPC and much more.

one of the features is stringformatting (see http://jsolait.net/wiki/documentation/core at the bottom of the page). but since a few days this does not work anymore, although i use the same version of jsolait since month's.

the "normal" way the jsolait-stringformatting works this way:

"%02d".format(8) == "08"

but, if you include "qooxdoo.js" AFTER jsolait the upper code looks like:

"%02d".format(8) == "8"

if i first include qooxdoo.js and then jsolait.js, it works again (this is my workaround).

does qooxdoo reset als "string extenions" from other libraries?

Just take a look at source/script/core/QxNative.js

There a quite some extensions to String, Array, Function and other core classes.

Probably some implementation of jsolait is better than ours. If it is possible to use parts of jsolait (licences) it would be nice to bring them to the same level.

Sebastian


</usc>


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to