-
27 Oct 2011 4:52 AM #1
Unanswered: Loader path - base path? Zend problem
Unanswered: 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
-
27 Oct 2011 6:10 AM #2
Hi,
I am not sure if ExtJS has 'baseURL' but in plain JavaScript you can do this :
This will give you baseURL in your DOM and you can use it whenever you need to specify url:Code:baseURL = window.location.protocol + '\/\/' + window.location.host + '\/';
Hope this helpsCode:url : baseURL + '/test/url/param1/1/';

-
28 Oct 2011 3:45 AM #3
I have the in this way:
The js folder is right under my WebContent folder, which is the first folder for the internet.Code:Ext.application({ name : 'G3', appFolder : 'js', ...
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


Reply With Quote