-
9 Feb 2011 5:30 AM #1
load XMLStore with phonegap
load XMLStore with phonegap
Hi to all, I've used this store to load data from XML:
I need to put this code inside phonegap application but I can't use an ajax proxy because I don't know the exact url.Code:var store = new Ext.data.Store({ autoLoad: true, proxy: { type: 'ajax', url: 'http://<path>/file.xml', reader: { type: 'xml', record: 'record' } }, fields: ['id','nome','descrizione'] });
Wich kind of proxy I can use? Otherwise, I to use loadData method with an XML file?
Thanks a lot
Stefano
-
9 Feb 2011 12:00 PM #2
Anyone???
thanks
-
11 May 2011 11:22 AM #3
Can you just create the proxy at runtime and pass in the URL?
Code:var urlPath = 'http://mypath.com/file.xml' var store = new Ext.data.Store({ autoLoad: true, proxy: { type: 'ajax', url: urlPath, reader: { type: 'xml', record: 'record' } }, fields: ['id','nome','descrizione'] });
Similar Threads
-
Ext.data.XmlStore won't load
By samuelsmith in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 3 Jan 2011, 7:57 AM -
why i can't load the xmldocument data to xmlstore object?
By linuxyf in forum Ext 3.x: Help & DiscussionReplies: 6Last Post: 15 Nov 2010, 1:43 AM -
how can i load the xml data to xmlstore ?
By linuxyf in forum Ext 3.x: Help & DiscussionReplies: 8Last Post: 4 Nov 2010, 12:43 AM -
Help required in xmlstore.Error: Ext.data.XmlStore is not a constructor
By arunsenthild in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 3 Aug 2010, 6:14 AM -
Help load ComboBox from XmlStore
By denverskills in forum Ext 3.x: Help & DiscussionReplies: 3Last Post: 30 Dec 2009, 4:46 PM


Reply With Quote