Re: [jQuery] Bug with .css('z-index', '2')
I also have the same exact problem. 'Z-index' worked perfectly in 1.0, but not in 1.01 when using IE. I will try your fix and let you know what the result is. -Isaac aedmonds wrote: Wanted to say that $().css('z-index', '2') does not work in IE but does work in FF. What will work in both browsers is $().css('zIndex', '2'). Not sure if this is a bug but it did throw me for a loop for a few minutes. I actually just noticed it because 'z-index' was working fine pre-1.0. I'm currently using Rev: 249. Can anyone else confirm this? -Aaron -- View this message in context: http://www.nabble.com/Bug-with-.css%28%27z-index%27%2C-%272%27%29-tf2224146.html#a6175733 Sent from the JQuery forum at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Bug with .css('z-index', '2')
I just tested your fix and it worked perfectly. Thanks for your post. My head was spinning for a while... Isaac Weinhausen wrote: I also have the same exact problem. 'Z-index' worked perfectly in 1.0, but not in 1.01 when using IE. I will try your fix and let you know what the result is. -Isaac aedmonds wrote: Wanted to say that $().css('z-index', '2') does not work in IE but does work in FF. What will work in both browsers is $().css('zIndex', '2'). Not sure if this is a bug but it did throw me for a loop for a few minutes. I actually just noticed it because 'z-index' was working fine pre-1.0. I'm currently using Rev: 249. Can anyone else confirm this? -Aaron -- View this message in context: http://www.nabble.com/Bug-with-.css%28%27z-index%27%2C-%272%27%29-tf2224146.html#a6176258 Sent from the JQuery forum at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Bug with .css('z-index', '2')
Actually, in DOM terms, zIndex is the only correct name. On 9/6/06, Isaac Weinhausen [EMAIL PROTECTED] wrote: I just tested your fix and it worked perfectly. Thanks for your post. My head was spinning for a while... Isaac Weinhausen wrote: I also have the same exact problem. 'Z-index' worked perfectly in 1.0, but not in 1.01 when using IE. I will try your fix and let you know what the result is. -Isaac aedmonds wrote: Wanted to say that $().css('z-index', '2') does not work in IE but does work in FF. What will work in both browsers is $().css('zIndex', '2'). Not sure if this is a bug but it did throw me for a loop for a few minutes. I actually just noticed it because 'z-index' was working fine pre-1.0. I'm currently using Rev: 249. Can anyone else confirm this? -Aaron -- View this message in context: http://www.nabble.com/Bug-with-.css%28%27z-index%27%2C-%272%27%29-tf2224146.html#a6176258 Sent from the JQuery forum at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Bug with .css('z-index', '2')
Right... but for CSS properties I believe z-index is the only correct name for the zIndex property. Maybe I'm wrong but do know you set zIndex by using p { z-index: 2; } I guess I've really never tried p { zIndex: 2; } -Aaron Dylan Verheul wrote: Actually, in DOM terms, zIndex is the only correct name. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/Bug-with-.css%28%27z-index%27%2C-%272%27%29-tf2224146.html#a6176674 Sent from the JQuery forum at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Bug with .css('z-index', '2')
True. What's difficult from a semantics perspective, is that the method name 'css' connotes that css properties should be acceptible parameters. If this method is only allowed to accept style keys, then perhaps the method name ought to change. Just some thoughts... Dylan Verheul wrote: Actually, in DOM terms, zIndex is the only correct name. On 9/6/06, Isaac Weinhausen [EMAIL PROTECTED] wrote: I just tested your fix and it worked perfectly. Thanks for your post. My head was spinning for a while... Isaac Weinhausen wrote: I also have the same exact problem. 'Z-index' worked perfectly in 1.0, but not in 1.01 when using IE. I will try your fix and let you know what the result is. -Isaac aedmonds wrote: Wanted to say that $().css('z-index', '2') does not work in IE but does work in FF. What will work in both browsers is $().css('zIndex', '2'). Not sure if this is a bug but it did throw me for a loop for a few minutes. I actually just noticed it because 'z-index' was working fine pre-1.0. I'm currently using Rev: 249. Can anyone else confirm this? -Aaron -- View this message in context: http://www.nabble.com/Bug-with-.css%28%27z-index%27%2C-%272%27%29-tf2224146.html#a6176258 Sent from the JQuery forum at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/Bug-with-.css%28%27z-index%27%2C-%272%27%29-tf2224146.html#a6176751 Sent from the JQuery forum at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Bug with .css('z-index', '2')
From: Dylan Verheul Actually, in DOM terms, zIndex is the only correct name. From: aedmonds Right... but for CSS properties I believe z-index is the only correct name for the zIndex property. Maybe I'm wrong but do know you set zIndex by using p { z-index: 2; } I guess I've really never tried p { zIndex: 2; } Nor would you want to. It's always names-like-this in CSS code and namesLikeThis in the DOM. -Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Bug with .css('z-index', '2')
Hi there, my idea: I'll change the css() function, so you can supply the correct css definition or the javascript attribute, i.e: $().css(zIndex, 2) And $().css(z-index, 2) will do the same. This is achieved by doing the following on the second method: 1) First, try to read the attribute from DOMelement.z-index, if this returns null, then 2) get the style string via DOMelement.getAttribute(style), which returns the proper css definitions, 3) split into array via split(;) 4) if z-index is found, change it and merge the array again, then do setAttribute(style, mergedArray) 5) if z-index is not found, add it to the array, merge it and to the same. Cool or not? Paul -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Michael Geary Gesendet: Mittwoch, 6. September 2006 20:41 An: 'jQuery Discussion.' Betreff: Re: [jQuery] Bug with .css('z-index', '2') From: Dylan Verheul Actually, in DOM terms, zIndex is the only correct name. From: aedmonds Right... but for CSS properties I believe z-index is the only correct name for the zIndex property. Maybe I'm wrong but do know you set zIndex by using p { z-index: 2; } I guess I've really never tried p { zIndex: 2; } Nor would you want to. It's always names-like-this in CSS code and namesLikeThis in the DOM. -Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Bug with .css('z-index', '2')
Generally speaking, posting to the bug tracker is better (for real bugs) as it's better organized for me and easier for me to work through. However, if the issue isn't a real bug, just something you're not sure of, then I recommend first posting it to the list for discussion (and possible move to the tracker). In your particular case, I probably would've posted it as a bug to the tracker since .css(z-index,2) not working is obviously a bug. Don't worry about it though, it helps to clear these things up sometimes. --John Dang! I should have checked the bug tracker. What's your preference for items such as these? Post bugs here? In the bug tracker? Both? I don't want to be polluting anything... (maybe I'm doing it now) :-$ Amen to Isaac's post too. :D ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Bug with .css('z-index', '2')
Wanted to say that $().css('z-index', '2') does not work in IE but does work in FF. What will work in both browsers is $().css('zIndex', '2'). Not sure if this is a bug but it did throw me for a loop for a few minutes. I actually just noticed it because 'z-index' was working fine pre-1.0. I'm currently using Rev: 249. Can anyone else confirm this? -Aaron -- View this message in context: http://www.nabble.com/Bug-with-.css%28%27z-index%27%2C-%272%27%29-tf2224146.html#a6162855 Sent from the JQuery forum at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/