[SOLVED] how can I trigger the coolite-core-js and data-js scripts to be included?
New Community Forums available at http://forums.ext.net
 

Coolite Forums

Welcome Guest ( Login | Register )
 
[SOLVED] how can I trigger the...
Subscribe
Last Login: 1/25/2009 4:53:33 PM
Posts: 79,
Posted 9/24/2008 4:31:58 PM

Group: Coolite Premium Member & Early Adopter
I'm wanting to access the coolite js files in my web page but it seems to be triggered only when there is an ext:store script there.  How can I force those scripts to be included w/o an ext:store?  
 



<script type="text/javascript" src="/coolite/coolite-core-js/coolite.axd?24906"></script>
 <script type="text/javascript" src="/coolite/coolite-data-js/coolite.axd?24906"></script>
Peter Kellner

http://peterkellner.net

Microsoft MVP, ASP.NET
Last Login: 7/8/2010 1:50:34 AM
Posts: 4,722,
Posted 9/24/2008 11:53:08 PM

Group: Core Development Team

By default the coolite-core.js file will be included whenever the <ext:ScriptManager> is included on the Page.

The coolite-data.js file can be manually included by adding the following RegisterClientScriptInclude statement and pointing to the embedded resource .js file within the Assembly.

Example

this.ScriptManager1.RegisterClientScriptInclude("Coolite.Ext.Web.Build.Resources.Coolite.coolite.coolite-data.js");

Hope this helps.

--
Geoffrey McGill
Coolite Inc.
Development Team
Skype : geoffrey.mcgill
Forum Guidelines | Coolite Examples | Coolite API Docs | ExtJS API Docs | Twitter
Last Login: 7/8/2010 1:50:34 AM
Posts: 4,722,
Posted 9/25/2008 12:28:12 AM

Group: Core Development Team

Hi Peter,

It would be good to do an SVN update. While testing the code I posted above I found a scenario where the above script could be mistakingly registered twice on the Page by the ScriptManager if the <ext:Store> was also present.

I added a small check and now everything is working better.

The code I posted does not change. It was just an internal logic fix.

Hope this helps.

--
Geoffrey McGill
Coolite Inc.
Development Team
Skype : geoffrey.mcgill
Forum Guidelines | Coolite Examples | Coolite API Docs | ExtJS API Docs | Twitter
« 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 -5:00, Time now is 8:33pm