Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Every layout has a javascript_files property, which is passed to the std_script weblet.  This parameter takes a comma-delimited list of file names (assumed to be relative to the /script directory).
  • From Version 13.0, WAM output is in UTF-8. <script> elements for the javascript_files property didn't have a charset attribute, therefore they were assumed to be in the same character set as the main document. To preserve backwards compatibility, they now have a charset attribute that defaults to "shift_jis" for language JPN and to "iso-8859-1" for all other languages. If you need to nominate a different character set, use the javascript_files_charset property in weblet std_script (you will need to add this parameter to your site layout). A better approach is to register your extra JavaScript files as external resources and include them as such.

...

Several of the shipped weblets also include small inline JavaScript functions in the XSL.


See Also

...

2.8.1 Can I create my own Script Weblet?

2.8.2 How do I Format inline JavaScript for a Weblet Property?