I was under the assumption that any of the static DOM methods should be eschewed in favor of the methods in the Element overlay types (where they exist).
so Element.getStyle().setProperty() vs. DOM.setStyleAttribute() Though both should currently work -jason On Jun 3, 2009, at 10:37 AM, Adam T wrote: > > Try > > DOM.setStyleAttribute(Element, "backgroundColor", "#ffffff") > > (you also need to use camelCase for the style you are changing). > > //Adam > > On 3 Juni, 18:15, Ganaga <ganael.jatt...@gmail.com> wrote: >> Hi, >> >> Doing a Element.setAttribute("style", "background-color: #ffffff") >> works fine in Firefox but has no effect in IE. >> >> Is there any work around for changing dynamically a style in IE ? >> >> The >> post:http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa >> ... >> provides a way to load a css file dynamically for IE, but how to >> change just an attribute ? >> >> Thanks ! > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---