Unanswered: Running an EXT JS 4.x Application (MVC) without a web server
Unanswered: Running an EXT JS 4.x Application (MVC) without a web server
Scenario
I need to deploy an offline application to a group of users (I will periodically update their data which will most likely be JSON files deployed to their EXT JS application folder).
I do not want the users to need to run a web server on their machines (PC/Mac laptops).
The store is loaded using a relative URL: Ext.define('Ext4Example.store.Stocks', { extend:'Ext.data.Store', model:'Ext4Example.model.Stock', autoLoad:true, listeners:{ load:function (store, records, successful, eOpts ) { console.log('Stocks load: ' + successful); } }, proxy:{ type:'ajax',
url:'app/store/data.json',
reader:{ type:'json', listeners:{ exception:function (reader, response, error, eOpts) { console.log('proxy reader: ' + error); } } } } }); Is it possible to run the EXT JS 4.x application without a web server?
I took a simple existing MVC demo application from Loaine Groner (thanks) which populates a grid from inline data, and modified it to read from the local file system.
the store throws a load exception. However I can see that the data is being response contains the JSON data.
If I run the application from an http URI the grid populates without error.