Results 1 to 4 of 4

Thread: app.js and index.html must been placed in the same folder?

  1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    15

    Default app.js and index.html must been placed in the same folder?

    hi, evryone.
    I am new to Extjs4. I generated a MVC app on python framwork django. It didn't work if I placed app.js and index.html file in different folders.
    Thanks in advance.

  2. #2
    Sencha User
    Join Date
    Mar 2012
    Location
    Chennai, India
    Posts
    92
    Answers
    8

    Default

    I don't know about django. But generally speaking, it is not necessarily to place app.js in same folder where index.html resides. All you have to look after is to map the file with correct path in your index.html files.

    for example if you have placed the app.js in a sub folder 'ex', and this folder ex is placed in the same folder as index.html, you can map your app.js as

    Code:
    <script type="text/javascript" src="ex/app.js"></script>
    I hope this helps.

    Regards,
    Premkumar. A

  3. #3
    Sencha User
    Join Date
    Sep 2012
    Posts
    15

    Default

    Thank for your reply. I modified directly on Extjs4 example and changed js reference directory, but it didn't work.
    Quote Originally Posted by a.premkumar View Post
    I don't know about django. But generally speaking, it is not necessarily to place app.js in same folder where index.html resides. All you have to look after is to map the file with correct path in your index.html files.

    for example if you have placed the app.js in a sub folder 'ex', and this folder ex is placed in the same folder as index.html, you can map your app.js as

    Code:
    <script type="text/javascript" src="ex/app.js"></script>
    I hope this helps.

    Regards,
    Premkumar. A

  4. #4
    Sencha User
    Join Date
    Sep 2012
    Posts
    15

    Default

    I found the problem. I deploy extjs4 on django, so I must change appFolder.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •