| J2JS | |
| Home > Docs > Tips | |
1. Tips, Tricks and Troubleshooting1. CSS StylingTo set the background color of an HTML element, use one of the following methods: CSSStyleDeclaration style = ((ElementCSSInlineStyle) element).getStyle();
Only use if the style property is not known at compile time. Hence, the
above usage in is discouraged.
Note: It is good practice to use CSS style sheets, possibly in conjunction with HTML class names, instead of setting style properties directly on individual elements. 1. Attribute removal
To remove a style attribute, set it to the empty string, not to CSS2Properties style = HTMLUtils.getStyle(element);
style.setBorderTop("solid black");
// Later ...
style.setBorderTop("");
Extracted from /projects/j2js-Runtime/test-src/Fragments.java
2. URL Query Parameters
If the
The 3. Trouble Shooting1. Loaded page is deadIs the correct assembly included within the <script/> tag? Is the correct static method specified as onLoad handler? | |
| Last build on Sat Jan 03 11:06:48 CET 2009 | |