Coolite and ExtJS extensions

  1. #1

    Coolite and ExtJS extensions

    Good day all.
    Sorry for my english.

    How include ExtJS extension (or other javascript files with link to ExtJs classes) into Coolite Toolkit?
    I need include .js after ExtJs core files.
    Write wrapper for ExtJs extension for use it in Coolite is only way?

    For example, i need to use ManagedIFrame ExtJs extension.

    In web page with Coolite extjs script files load:
    <script type="text/javascript" src="/extjs/adapter/ext/ext-base-js/coolite.axd?19644"></script>
    <script type="text/javascript" src="/extjs/ext-all-js/coolite.axd?19644"></script>
    <script type="text/javascript" src="/coolite/coolite-core-js/coolite.axd?19644"></script>
    After this lines i need to load this file:
    <script type="text/javascript" src="/js/miframe.js"></script>
    Can this be done without update Coolite source code?

    Thanks in advance.
  2. #2

    RE: Coolite and ExtJS extensions

    I have a similar issue and have not found a good solution yet.
  3. #3

    RE: Coolite and ExtJS extensions

    Within the <head> of your Page/Masterpage, just add an <ext:ScriptContainer> control, then add your .js after the ScriptContainer.

    Example

    <ext:ScriptContainer runat="server" />
    <script type="text/javascript" src="/js/miframe.js"></script>
    Hope this helps.

    Geoffrey McGill
    Founder
  4. #4

    RE: Coolite and ExtJS extensions

    Many thanks for help.
    This is works!
  5. #5

    RE: Coolite and ExtJS extensions

    Using of <ext:ScriptContainer> is not solved my problem.

    In begin, loads extjs scripts -
    <script type="text/javascript" src="/NewSite/extjs/adapter/ext/ext-base-js/coolite.axd?v=2802"></script>
    <script type="text/javascript" src="/NewSite/extjs/ext-all-js/coolite.axd?v=2802"></script>
    <script type="text/javascript" src="/NewSite/coolite/coolite-core-js/coolite.axd?v=2802"></script>
    <script type="text/javascript" src="/NewSite/extjs/locale/ext-lang-ru-js/coolite.axd?v=2802"></script>
    <script type="text/javascript" src="/NewSite/coolite/coolite-data-js/coolite.axd?v=2802"></script>
    After loads ExtJs onReady script block -
    <script type="text/javascript">
      //<![CDATA[
        Ext.onReady(function(){})
      //]]>
    </script>
    And in end, load ExtJS extension -
    <script type="text/javascript" src="js/miframe.js"></script>
    But i need to load ExtJS extension module js after ExtJS scripts and before Ext.onReady script block.
    How can this be done?

    Or how use ExtJS extensions in Coolite Toolkit without creating wrapper\control for it?
  6. #6

    RE: Coolite and ExtJS extensions

    Hi,

    Why you need such sequence? Ext.onReady executes after all scripts loading. What difference beetwen your sequence and our?
  7. #7

    RE: Coolite and ExtJS extensions

    Exactly. Earlier, not thought about it :)
    Thank you for your answer.

Similar Threads

  1. using ManagedIFrames from ExtJS user extensions
    By vali1993 in forum 1.x Help
    Replies: 0
    Last Post: Feb 23, 2010, 11:11 AM
  2. How to add Validation Type Extensions in Coolite?
    By aespinoza in forum 1.x Help
    Replies: 1
    Last Post: Jan 15, 2010, 8:11 PM
  3. [CLOSED] help files for coolite? (extjs verses coolite)
    By pkellner in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Nov 25, 2008, 12:19 PM
  4. Extensions and Coolite
    By Dave.Sanders in forum Open Discussions
    Replies: 18
    Last Post: Sep 17, 2008, 5:03 PM

Posting Permissions