Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Ajax Programming

Dynamically applying css to ajax/DOM created elements in IE


I am having an issue with Internet Explorer (6,7).

Objects I create within JS (so appendChild) or ajax(even using
innerHTML) do not take the styles assigned to them in internet
explorer. Works fine in firefox but in IE the styles will not apply.
Even if I use setAttribute('style', 'whatever the styling is'). Is this
a known issue and are there any workarounds?

Thanks

var myDiv = document.createElement("div");
myDiv.className = "bigFatText";
myDiv.style.backgroundColor = "red";
myDiv.innerHTML = "foo";
document.body.appendChild(myDiv);

On 1/25/07, dot_txt <teranetsecur@gmail.com> wrote:

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc