OT: Javascript browser compatibility question.

2005-08-11 Thread Jeff W
Can anyone tell me WHY this won't work in NS6.1 but work fine in ie5-6, firefox and NS8?? document.getElementById(CurrentHighlightedCell).style.background='#006600'; CurrentHighlightedCell is a variable that contains the current id of the TD background color I am changing. Thanks.. Jeff

Re: OT: Javascript browser compatibility question.

2005-08-11 Thread Jim Campbell
Does it matter if you put the element ID in quotes? getElementById(CurrentHighlightedCell)... - Jim Jeff W wrote: Can anyone tell me WHY this won't work in NS6.1 but work fine in ie5-6, firefox and NS8?? document.getElementById(CurrentHighlightedCell).style.background='#006600';

Re: OT: Javascript browser compatibility question.

2005-08-11 Thread Barney Boisvert
NS6 was a bastard that didn't work. Did you try backgroundColor? cheers, barneyb On 8/11/05, Jeff W [EMAIL PROTECTED] wrote: Can anyone tell me WHY this won't work in NS6.1 but work fine in ie5-6, firefox and NS8?? document.getElementById(CurrentHighlightedCell).style.background='#006600';

Re: OT: Javascript browser compatibility question.

2005-08-11 Thread Charlie Griefer
if it's a literal ID value, then yes, he'd need quotes. I'm guessing it's a variable. Try backgroundColor (note the casing) instead of background. On 8/11/05, Jim Campbell [EMAIL PROTECTED] wrote: Does it matter if you put the element ID in quotes?

Re: OT: Javascript browser compatibility question.

2005-08-11 Thread Ray Champagne
Barney Boisvert wrote: NS6 was a bastard that didn't work. He he, I have an uncle like that. Ray ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application

Re: OT: Javascript browser compatibility question.

2005-08-11 Thread Barney Boisvert
Who you hope doesn't subscribe to this list.. ;) On 8/11/05, Ray Champagne [EMAIL PROTECTED] wrote: Barney Boisvert wrote: NS6 was a bastard that didn't work. He he, I have an uncle like that. Ray -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got

Re: OT: Javascript browser compatibility question.

2005-08-11 Thread Jeff W
Its a variable.. On 8/11/05, Jim Campbell [EMAIL PROTECTED] wrote: Does it matter if you put the element ID in quotes? getElementById(CurrentHighlightedCell)... - Jim Jeff W wrote: Can anyone tell me WHY this won't work in NS6.1 but work fine in ie5-6, firefox and NS8??

Re: OT: Javascript browser compatibility question.

2005-08-11 Thread Jeff W
I'll try the backgroundColor and give that a whirl... Thanks, Jeff On 8/11/05, Charlie Griefer [EMAIL PROTECTED] wrote: if it's a literal ID value, then yes, he'd need quotes. I'm guessing it's a variable. Try backgroundColor (note the casing) instead of background. On 8/11/05, Jim

Re: OT: Javascript browser compatibility question.

2005-08-11 Thread Jeff W
Well isn't NS6.1 odd It appears that BOTH my example and the new.backgroundColor example work and don't work... As if you couldn't tell this is a background cell changer. ...and this code is firing on the ONCLICK of each cell :) Here is the weirdness... Say I have 3 cells wide table...

RE: OT: Javascript browser compatibility question.

2005-08-11 Thread Mosh Teitelbaum
Jeff: Barring a browser bug (which is certainly possible), the likely culprit is a slight logic error with the JavaScript code. If you post the relevant code, I'm sure the list can review it for you. As to alternative ways of doing it, you might want to try change the cell's Class instead of