-
23 Feb 2007 3:27 AM #1
Missing parameter in HttpProxy
Missing parameter in HttpProxy
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
Function calling the proxyCode:ds = new Ext.data.Store({ proxy: new Ext.data.HttpProxy({ url: 'feed-proxy.php' }), reader : reader });
The proxy is called alright but the feed information is missingCode:loadFeed : function(feed){ statusPanel.setContent('Loading feed ' + feed + '...'); statusPanel.getEl().removeClass('done'); ds.load({'feed': feed}); }
Cheers,
Thomas
-
23 Feb 2007 3:31 AM #2
Code:ds.load({ params:{'feed': feed} });
-
23 Feb 2007 3:40 AM #3
Great
I expect this example hasn't been converted and tested yet. Do you want more reports like this? :wink:
Cheers,
Thomas
-
23 Feb 2007 3:45 AM #4
Not about examples, they haven't been converted yet. If you want to fix one though...

-
23 Feb 2007 4:23 AM #5
-
25 Feb 2007 12:16 AM #6
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...
CheersCode://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);
Thomas
-
25 Feb 2007 3:19 AM #7
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.
-
26 Feb 2007 12:19 PM #8
Hey Jack, is this fixed as loadData in the Alpha 2 Rev 5?
-
27 Feb 2007 7:53 AM #9
Yes, loadData was added.
-
3 Mar 2007 1:25 AM #10
Similar Threads
-
HttpProxy adjustable timeout ?
By kalebwalton in forum Ext 1.x: Help & DiscussionReplies: 11Last Post: 13 Jun 2009, 3:50 PM -
a3rev4: HttpProxy and YUI-adapter
By Arikon in forum Ext 2.x: Help & DiscussionReplies: 13Last Post: 28 Jun 2007, 6:31 AM -
Help About Parameter
By reang in forum Ext 1.x: Help & DiscussionReplies: 4Last Post: 28 Mar 2007, 8:14 AM -
HTTPProxy - Paging Grid problem
By JasonMichael in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 11 Mar 2007, 9:07 PM -
Function parameter keeping scope?
By SteveEisner in forum Community DiscussionReplies: 2Last Post: 3 Nov 2006, 3:00 PM


Reply With Quote