[CLOSED] ScriptContainer

  1. #1

    [CLOSED] ScriptContainer

    What's the purpose of the ScriptContainer?

    Cheers,
    Timothy
  2. #2

    RE: [CLOSED] ScriptContainer

    By default the <ext:ScriptManager> will add the required <script> includes as the last items within the Page <head> section. You can control the exact placement of the required resource files by adding a <ext:ScriptContainer> to any specific location with the <head>.

    The <ext:ScriptContainer> may be required if you have separate JavaScript includes or blocks or inline JavaScript which need to execute "after" the Toolkit resources are loaded.

    The following demonstrates adding an <ext:ScriptContainer> within the <head>.

    Example

    <head runat="server">
        <title>Untitled Page</title>
        
        <!-- Add ScriptContainer to customize location of required Toolkit resources (js &amp; css) -->
        <ext:ScriptContainer ID="ScriptContainer1" runat="server" />
        
        <!-- Add custom JavaScript after ScriptContainer -->
        <script type="text/javascript" src="../js/custom.js"></script>
    </head>
    Hope this helps.
    Geoffrey McGill
    Founder

Similar Threads

  1. [1.0] ScriptContainer
    By methode in forum Open Discussions
    Replies: 2
    Last Post: Apr 07, 2010, 7:15 AM
  2. ScriptContainer indentations support
    By Ciaro in forum 1.x Help
    Replies: 7
    Last Post: Jan 13, 2010, 3:09 PM
  3. ScriptContainer Problem
    By rcaunt in forum 1.x Help
    Replies: 6
    Last Post: Jul 30, 2009, 11:37 AM
  4. Replies: 2
    Last Post: Jun 10, 2009, 5:27 AM

Posting Permissions