1. #1
    Sencha Premium Member
    Join Date
    Aug 2007
    Location
    St. Helens, England
    Posts
    30
    Vote Rating
    0
    SSJSparky is on a distinguished road

      0  

    Question Including layout code in external js file

    Including layout code in external js file


    EDIT: This has been solved, I stupidly forgot to include the line of code to initialise the layout object in the file.

    Hi all,

    I've been playing with Ext for a week or so now, just experimenting with it. At present I am having a problem which is quite possibly caused by my own stupidity. I have a folder structure for the system I'm building like so

    customer/
    js/
    inc/

    etc..

    I am trying to separate out the layout code from the html by including it in an external js file in the js folder, which is then called via

    Code:
    <script type="text/javascript" src="../js/layout.js"></script>
    However, although the code works fine when I include it directly in the html, when I try including it via this external file it doesn't seem to have any effect. Can anyone enlighten me as to what I'm missing?

    I've had a look through the forums and FAQ but haven't seen anything regarding this issue.

    Many thanks.

  2. #2
    Sencha User
    Join Date
    Dec 2011
    Location
    Bangladesh
    Posts
    6
    Vote Rating
    0
    masum is on a distinguished road

      0  

    Default


    Yes it is very very testy. I love ext js

Thread Participants: 1