PDA

View Full Version : How do I run app.js from other than the installed directory?



denisputnam
15 May 2014, 2:10 PM
I have my app.js installed in the jsinterface/thematic/esmAggregate/ directory but I need to run my index.htms or index.jsp from the root directory. When I do this I get the following errors in firebug.

Can someone tell me how to get my app.js to find the other .js files that it needs if it is not run from the installed directory?


"NetworkError: 404 Not Found - http://172.16.217.130:7101/esmart/app/view/EsmAggregateWindow.js?_dc=1400190558295"
"NetworkError: 404 Not Found - http://172.16.217.130:7101/esmart/app/store/AggregateStore.js?_dc=1400190558297"
"NetworkError: 404 Not Found - http://172.16.217.130:7101/esmart/app/controller/EsmAggregateController.js?_dc=1400190558300""NetworkError: 404 Not Found - http://172.16.217.130:7101/esmart/app/model/BuildingFloorsModel.js?_dc=1400190558287"

This is the application top:

// @require @packageOverridesExt.Loader.setConfig({
enabled: true
});




Ext.application({
models: [
'BuildingFloorsModel'
],
stores: [
'AggregateStore'
],
views: [
'EsmAggregateWindow'
],
controllers: [
'EsmAggregateController'
],
name: 'esmAggregate',


launch: function() {
Ext.create('esmAggregate.view.EsmAggregateWindow', {renderTo: Ext.getBody()});
}


});


This is my index.html file:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- Auto Generated with Sencha Architect -->
<!-- Modifications to this file will be overwritten. -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>esmAggregate</title>
<script src="jsinterface/ext/ext-all.js"></script>
<link rel="stylesheet" href="jsinterface/ext/packages/ext-theme-classic/build/resources/ext-theme-classic-all.css">
<script type="text/javascript" src="jsinterface/thematic/esmAggregate/app.js"></script>
</head>
<body></body>
</html>

denisputnam
16 May 2014, 9:31 AM
In Architect I am looking at 'appFolder' and 'appProperty'. Can this be used to do what I want?