X Library Forums
You are not logged in.
New user registration is currently disabled.
X 4.16 includes some of the changes described below. However, the functions were not removed from X but they were removed from x_core.js. For details see the xLibrary revision history.
Last edited by MikeFoster (July 3, 2007 8:49:00 pm)
just do this:
Utilize the X Viewer which shows all dependencies for every X symbol.
So all of the "x_*.js" files in the "/x/" folder will be removed except for "x_core.js" and "x_event.js".
I've modified my first post to better reflect what I've ended up doing.
I've almost finished making these changes. I've went through all the demos and modified them where needed. One thing I noticed while going thru all the demos is that "x_core.js" now has a very good selection of functions. In most situations "x_core.js" and "x_event.js" will be all you need, and together they are only 8663 bytes.
X 4.16 will include all these changes.
Additionally... I'm thinking of removing the button property from the xEvent object. What do you think?
Last edited by MikeFoster (June 8, 2007 7:44:51 pm)
Yes. Browser support is now such that these functions are no longer needed. In your code, instead of these X functions, use the corresponding native property or method.
Here's a summary:
X Functions that were wrappers around Element methods and properties.
These will be removed from X.
xOffsetLeft, xOffsetTop, xParent, xAppendChild, xCreateElement and xInnerHtml.
X Functions that were wrappers around Style properties.
These will be removed from X.
xColor, xBackground, xZIndex, xShow, xHide, xVisibility and xDisplay.
A new X function that will be added.
xStyle will be added to X and to "x_core.js". It can be used instead of xColor, xBackground, xZIndex, xShow, xHide, xVisibility and xDisplay - and has other uses.
If you remove the functions wouldn't that remove support for old browsers that do not have native support? Which would this affect?
P.S. Is there a browser comatibility list for X somewhere?
Welcome to the X Forums!
This change would only have affected NN4 (and perhaps Opera 5/6), but NN4 support was removed a long time ago. Those functions had become nothing but wrappers around the native property or method.
The closest thing I have to a compatibility list is this standard blurb:
The X core is designed for Opera 5+ (*), Mozilla, Firefox, Safari, WebKit, Internet Explorer 4+, Konqueror, Netscape 4.75+ (**) and browsers with similar object models. Object-detection instead of browser-detection is used exclusively. Currently, I'm testing with the following browsers. X has been tested by others on a wide variety of platforms.
WinXP: Opera 9.20, Firefox 188.8.131.52, Safari 3.0.1 and Internet Explorer 4, 5 and 7.
Win2K: Opera 7.51, FireFox 184.108.40.206 and Internet Explorer 6.
* Op 5/6 quirks support has been removed but the old files are available.
** NN4 support has been removed but the old files are available.
The X4.16 release is now available and has some of the changes I have described above. However, I did not remove the functions from X, but I did remove them from x_core.js.
Refer to the xLibrary revision history for details.