[CLOSED] XScript with referenced javascript files

  1. #1

    [CLOSED] XScript with referenced javascript files

    Hi
    I would like to to:

    <ext:XScript runat="server">
    <script type="text/javascript" src="../../ClientResources/Scripts/PortfolioConstruction.js"></script> 
    </ext:XScript>
    Then, in my PortfolioConstruction.js I would like to reference objects using #{Grid1}.

    Can this be done?
    Last edited by Daniil; Jun 13, 2011 at 3:53 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Unfortunately, no.

    I can suggest the following:

    1. Within the page:
    <ext:XScript runat="server">
        <script type="text/javascript">
            var getGrid = function () {
                return #{GridPanel1};
            };
        </script>
    </ext:XScript>
    2. Within the script file:
    getGrid()

Similar Threads

  1. Replies: 7
    Last Post: Jul 31, 2012, 8:31 PM
  2. How to reference External Javascript Files????
    By healingnations in forum 1.x Help
    Replies: 1
    Last Post: Dec 07, 2011, 2:45 AM
  3. Using javascript.js files in ext:XScript
    By kutlu in forum 1.x Help
    Replies: 6
    Last Post: Dec 17, 2010, 10:17 PM
  4. Replies: 2
    Last Post: Aug 07, 2008, 3:35 PM

Posting Permissions