Zend_View-Helpers-InlineScript.xml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Reviewed: no -->
  3. <sect3 id="zend.view.helpers.initial.inlinescript">
  4. <title>InlineScript Helper</title>
  5. <para>
  6. The <acronym>HTML</acronym> <emphasis>&lt;script&gt;</emphasis> element is used to either
  7. provide inline client-side scripting elements or link to a remote resource
  8. containing client-side scripting code. The <classname>InlineScript</classname>
  9. helper allows you to manage both. It is derived from <link
  10. linkend="zend.view.helpers.initial.headscript">HeadScript</link>,
  11. and any method of that helper is available; however, use the
  12. <methodname>inlineScript()</methodname> method in place of
  13. <methodname>headScript()</methodname>.
  14. </para>
  15. <note>
  16. <title>Use InlineScript for HTML Body Scripts</title>
  17. <para>
  18. <classname>InlineScript</classname>, should be used when you wish to include
  19. scripts inline in the <acronym>HTML</acronym> <emphasis>body</emphasis>. Placing scripts
  20. at the end of your document is a good practice for speeding up delivery of
  21. your page, particularly when using 3rd party analytics scripts.
  22. </para>
  23. <para>
  24. Some JS libraries need to be included in the <acronym>HTML</acronym>
  25. <emphasis>head</emphasis>; use <link
  26. linkend="zend.view.helpers.initial.headscript">HeadScript</link> for those scripts.
  27. </para>
  28. </note>
  29. </sect3>
  30. <!--
  31. vim:se ts=4 sw=4 et:
  32. -->