PDA

View Full Version : Missing parameter in HttpProxy



tolstoj
23 Feb 2007, 3:27 AM
Hi all
I have downloaded Ext 1.0 rev 9 and was looking inte to the RSS Feeder example when I ran into this:

It seems as if the Ext.data.HttpProxy doesnt send any arguments (feed) to my proxy handler?

Data store instance

ds = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({
url: 'feed-proxy.php'
}),
reader : reader
});

Function calling the proxy


loadFeed : function(feed){
statusPanel.setContent('Loading feed ' + feed + '...');
statusPanel.getEl().removeClass('done');
ds.load({'feed': feed});
}


The proxy is called alright but the feed information is missing

Cheers,
Thomas

jack.slocum
23 Feb 2007, 3:31 AM
ds.load({
params:{'feed': feed}
});

tolstoj
23 Feb 2007, 3:40 AM
Great

I expect this example hasn't been converted and tested yet. Do you want more reports like this? :wink:

Cheers,
Thomas

jack.slocum
23 Feb 2007, 3:45 AM
Not about examples, they haven't been converted yet. If you want to fix one though... ;)

tolstoj
23 Feb 2007, 4:23 AM
I'll give it a try :D

Cheers
Thomas

tolstoj
25 Feb 2007, 12:16 AM
I am trying to convert the validateFeed function and have a question regarding the new Datastore.
Since we alreade have the xml response you used the dm.loadData(xml), now in the ds I have problem finding the correct method...


//Original code...
dm.loadData(xml);

//Something like this?
ds.reader.readRecords(xml);

//This works, but its calling the proxy all over again...
this.loadFeed(url);

Cheers
Thomas

jack.slocum
25 Feb 2007, 3:19 AM
ds.removeAll();
ds.add(reader.readRecords(xml).records);

I will make a shortcut function for this similar to the old "loadData". Ping me if you don't see it in the next rev please.

Domitian
26 Feb 2007, 12:19 PM
Hey Jack, is this fixed as loadData in the Alpha 2 Rev 5?

jack.slocum
27 Feb 2007, 7:53 AM
Yes, loadData was added.

tolstoj
3 Mar 2007, 1:25 AM
Works like a charm :D