Connecting Tech Pros Worldwide Forums | Help | Site Map

Disappearing text in IE 7 when setting className

Newbie
 
Join Date: Jul 2007
Posts: 2
#1: Jul 24 '07
Can anyone help me with a problem that I have with apparently unrelated text disappearing in IE7 when I set a className.
This does not happen in Firefox.
I am trying to create an Ajax driven table where you can click on an active cell to pop up a form, then submit that form to modify the cell value.
My page uses several layers of tables and divs in different sequences.
Setting the className of a div within a deep table causes text to disappear in divs in a different table.

It sounds confusing, but the page is really very simple and should work.

http://www.pleasantcreek.com/test/

Mousing over the mouseover area causes the test text in divs to disappear.

epots9's Avatar
Moderator
 
Join Date: May 2007
Location: Canada
Posts: 1,313
#2: Jul 24 '07

re: Disappearing text in IE 7 when setting className


try using
Expand|Select|Wrap|Line Numbers
  1. document.getElementById('popupTest').setAttribute('className','testStyle');
  2. //u are using
  3. //document.getElementById('popupTest').className = 'testStyle';
  4.  
how does that work for u?

good luck
Newbie
 
Join Date: Jul 2007
Posts: 2
#3: Jul 24 '07

re: Disappearing text in IE 7 when setting className


Thanks for replying to my problem.

I tried your suggested change, but it did not work.

The result is at
http://www.pleasantcreek.com/test/index1.html
Reply