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

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 -"
"NetworkError: 404 Not Found -"
"NetworkError: 404 Not Found -""NetworkError: 404 Not Found -"

This is the application top:

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

models: [
stores: [
views: [
controllers: [
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. -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<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>

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