From: George D. <li...@iD...> - 2014-01-20 20:30:27
|
Jim, On 1/20/14, 2:44 PM, Jim Xie wrote: > I have the following code that changes a form style > > HtmlForm htmlForm = getForm(); //supposed to get a HtmlForm object. > ScriptableObject scriptObject = htmlForm.getScriptObject(); > HTMLFormElement formElement = (HTMLFormElement)scriptObject; > ComputedCSSStyleDeclaration style = formElement.getCurrentStyle(); > style.setBackgroundColor("#FF0000"); > style.setBorderColor("blue"); > > The above code doesn't work. Please help me out. What were you expecting it to do? - George -- ---------------------------------------------------------------------- * George Dinwiddie * http://blog.gdinwiddie.com Software Development http://www.idiacomputing.com Consultant and Coach http://www.agilemaryland.org ---------------------------------------------------------------------- |