Sencha/Phonegap: Accesing XML remote file using HTTPS

brettwfloyd

New Member
So I'm making a phonegap/sencha touch application that uses an Ext.data.store with a proxy to a HTTPS url where he gets an XML response from an amazon EC2 server. The code looks like:\[code\]Ext.define("Name.model.Device", { extend: "Ext.data.Model", config: { //idProperty: 'id', fields: [ { name: 'device_id', type: 'int' }, { name: 'name', type: 'string'} ], validations: [ { type: 'presence', field: 'id' }, { type: 'presence', field: 'name' } ] }});Ext.define("Name.store.DeviceStore", { extend: "Ext.data.Store", requires:"Ext.data.reader.Xml", config: { model: "Name.model.Device", proxy: { type: 'ajax', url : 'https://amazonec2instanceurl/getDevices', reader: { type: 'xml', record: 'device' //root: 'catalog' } }, autoload: true }});\[/code\]I have been doing some googlin' but I don't seem to find any definite answer. The result I get when testing on Google Chrome is simply\[code\]OPTIONS https://someurl/getDevices?_dc=1337025277619&page=1&start=0&limit=25 Resource failed to load\[/code\]I guess it isn't a Phonegap issue right now, but I assume it might cause some trouble in the future. What considerations should I take regarding the issue? Does Sencha need some special configuration to work over HTTPS? Can phonegap even do it? Any advice on debugging tools?Thanks.
 
Back
Top