For several years now this hobby has provided me with a lot of enjoyment. It is my pleasure to share my toys with you. All I ask is that you (1) respect the LGPL license; (2) support the developer community by sharing code, participating in forums and helping others.
z5: I added the layout2 demo.
I finally have IE versions 4, 5, and 6 running on the same machine. I'm in the process of retesting everything.
xLib is my newest project and is still in development. I'll briefly describe it, to see if anyone thinks it might be useful. xLib scans your application source files (.js, .html, .php, etc.), makes a list of all X Library functions called, then creates a custom library file containing only the functions required by your app. It performs very simple compression for now - it just removes comments and leading whitespace. It may also create a custom css file containing any required css for any X components found in the app.
X v3.15.1 has the following changes:
X v3.15 had two very important changes:
If all you need are the core functions (and you don't need NN4 support) then your download size has gone from 15KB to 10KB because of the above changes.
The following provides tips for upgrading from a previous version of X. Come to the forums and I'll help with the upgrade. Utilize the new X reference - it provides function dependency and file information for all X functions.
CBE was great fun, but now I concentrate mainly on X. Soon, X will do almost everything CBE would do - with much smaller file sizes. I probably won't make any more updates to CBE.
Some of these may not work, and I'm sure many of the links are bad - but here they are...
Most of the CBE documentation does not apply to X. CBE implements its own object tree. CBE also implements the DOM2 event model in cross-browser javascript. The CBE documentation is needed to describe these 'embedded' object and event models.
X does not implement its own object nor event models. You might say that, while CBE is an 'API', X is merely a function library. X uses the browser's native object and event models. Really, the only documentation you need to make use of X is...
So, you don't have to learn the X object model, because it doesn't have one - just study the existing browser DOMs.
Almost all the CBE methods are tightly bound, because of their dependence on the CBE object model. Most of the X functions are independent from each other. With X it is much easier to create a custom 'x.js' file which contains only the functions used by your application. (I'm working on something that will automate this. ;-))
The semantics of CBE methods and their corresponding X functions are virtually the same. For example, the concept of "width/height" is the same - the CBE methods width()/height() and the X functions xWidth()/xHeight() both provide, effectively, read and write access to element.offsetWidth/element.offsetHeight.
X and CBE are distributed under the terms of the LGPL (GNU Lesser General Public License). I decided on this license because I want this work to remain free to the developer community.
Are X and CBE free?
Yes, you may download the libraries for free.
Is there free technical support?
Yes, technical support at the forums is free - but technical support by eMail is not free.
May I use CBE at work, or in a commercial project?
Yes, you may use the libraries in your business projects, even if that project includes proprietary code, but the X and/or CBE library must retain its LGPL and free status. See the license for details.
May I modify the library?
Yes, you may modify and/or extend the libraries, but the resulting library must retain its LGPL and free status. I have license and copyright comments at the top of each source file. Leave those comments intact and add your own comments explaining your modifications to the file. See the license for details.
Do I have to give you credit?
There is a copyright and license statement at the top of each source file. Please leave that intact. A link back to Cross-Browser.com would be very nice but is not required.
For the latest info on X and CBE visit Cross-Browser.com where you'll find more documentation and many more example applications.
If this is your first time to use X or CBE then I suggest you start with X.
By your use of X and/or CBE you consent to the LGPL License - please read it.
Myself and other DHTML developers offer free support at the following forums. I hope you visit us.