| If you omit this the JavaScript won't be executed in some browsers, most notably Opera.
The CSS needs to be appended separately to the header because Safari doesn't play nice with rules entered in the body, failing to render them. Of course one could argue that Safari is simply forcing you to do things the right way.
You'll also need to make sure the CSS and HTML returned in the PHP variables $sCss and $sHtml is reduced to one line to prevent errors in the resulting JavaScript. The following function should be suitable for this in most cases. |
| |