Results 1 to 3 of 3

Thread: Loader path - base path? Zend problem

  1. #1
    Ext JS Premium Member
    Join Date
    Oct 2011
    Posts
    84
    Vote Rating
    0
      0  

    Exclamation Loader path - base path? Zend problem

    app.appFolder : '/app'

    but other isues are comming
    Last edited by Webtel; 27 Oct 2011 at 6:10 AM. Reason: cant delete it

  2. #2
    Sencha User
    Join Date
    Mar 2011
    Posts
    15
    Vote Rating
    0
      0  

    Default

    Hi,

    I am not sure if ExtJS has 'baseURL' but in plain JavaScript you can do this :

    Code:
    baseURL  = window.location.protocol + '\/\/' + window.location.host + '\/';
    This will give you baseURL in your DOM and you can use it whenever you need to specify url:

    Code:
    url : baseURL + '/test/url/param1/1/';
    Hope this helps

  3. #3
    Sencha User lucasguaru's Avatar
    Join Date
    May 2011
    Location
    Guaruj, Brazil
    Posts
    77
    Answers
    9
    Vote Rating
    2
      1  

    Default

    I have the in this way:
    Code:
    Ext.application({
            name : 'G3',
            appFolder : 'js',
    ...
    The js folder is right under my WebContent folder, which is the first folder for the internet.
    My link for the js on the browser will be:
    http://localhost/G3/js/App.js

    I noticed you set the app folder after. I do it right when I create the application. I don't know if that's a problem but you can try different.
    Regards

Tags for this Thread

Posting Permissions

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