[SOLVED] ScriptContainer
*NEW - Coolite Toolkit Version 0.7 now available for DOWNLOAD. See also Examples Explorer.
 

Coolite Forums

Welcome Guest ( Login | Register )
 
[SOLVED] ScriptContainer
Subscribe
Last Login: Today @ 5:11:58 PM
Posts: 648,
Posted 8/18/2008 2:01:32 PM

Group: Coolite Premium Member & Early Adopter
What's the purpose of the ScriptContainer?

Cheers,
Timothy


----
Timothy Grant Vogelsang
tvogelsang [at] gmail [dot] com
Coolite Toolkit 0.7 SVN (Professional Edition)
Microsoft .NET Framework 2.0
Microsoft ASP.NET Ajax 1.0

Last Login: Today @ 3:28:10 PM
Posts: 1,652,
Posted 8/18/2008 2:38:48 PM

Group: Core Development Team
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 & 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
Coolite Inc.
Development Team
Coolite Examples | Coolite API Docs | ExtJS API Docs
twitter [coolite | personal]
« Prev Topic | Next Topic »
Reading This Topic
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.
All times are GMT -8:00, Time now is 5:35pm