> From: Claude Schneegans [mailto:[EMAIL PROTECTED] > Depends... > Personally, I'm using an MSIE emulator for FF. (see > http://webfx.eae.net/dhtml/ieemu/ ) MSIE has very convenient > features missing in the standard. > Thanks to __defineSetter__ and __defineGetter__ methods, one > can define new properties in Mozilla equvalent to the MSIE properties. > Sticking to the standard is very nice, in theory, the problem > is when the standard is dumb, you restrict yourself to dumb > functionalities. > > Just an example, the width, top, left etc. properties contain > strings (ie. "100px"), not really convenient for calculations > in a program. > MSIE has added the pixelWidth, pixelTop, pixelLeft etc > properties, that contain integer values that you don't have to parse. > For instance the following declaration in Mozilla creates a > pixelWidth property in Mozilla. > You don't even have to test for the browser in the code. > CSSStyleDeclaration.prototype.__defineGetter__("pixelWidth", > function() { return parseInt(this.width) || 0; });
I thought this thread was being moved to cf-ot or cf-community? Must be not.. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198391 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

