A Programmer's Dream

Success with the Dynamic Divs

Posted by Stephen Wrighton on 01 May 2007

Well at least partly. The last post here, I was complaining about the behavior of my drag/drop divs which I created from data returned from the web server. Well the Firefox behavior is still there and annoying.

But the IE behavior I seem to have figured out.

I was using the command DIV.setAttribute("class", "MyDivClass"); to set the class attribute. That command works in Firefox - but apparently not in IE. IE requires DIV.className = "MyDivClass";.

Just one of those small annoyances which is the difference between IE and Mozilla browsers. Frankly, I'm scared to open the site in Opera to see what happens.

Tweet me @kidananubix if you like this post.