1. #1
    Sencha User tolstoj's Avatar
    Join Date
    Mar 2007
    Posts
    53
    Vote Rating
    1
    tolstoj is on a distinguished road

      0  

    Default 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
    Code:
    ds = new Ext.data.Store({
        proxy: new Ext.data.HttpProxy({
            url: 'feed-proxy.php'
        }),
        reader : reader
    });
    Function calling the proxy
    Code:
    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

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    16
    jack.slocum will become famous soon enough

      0  

    Default


    Code:
    ds.load({
         params:{'feed': feed}
    });

  3. #3
    Sencha User tolstoj's Avatar
    Join Date
    Mar 2007
    Posts
    53
    Vote Rating
    1
    tolstoj is on a distinguished road

      0  

    Default


    Great

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

    Cheers,
    Thomas

  4. #4
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    16
    jack.slocum will become famous soon enough

      0  

    Default


    Not about examples, they haven't been converted yet. If you want to fix one though...

  5. #5
    Sencha User tolstoj's Avatar
    Join Date
    Mar 2007
    Posts
    53
    Vote Rating
    1
    tolstoj is on a distinguished road

      0  

    Default


    I'll give it a try

    Cheers
    Thomas

  6. #6
    Sencha User tolstoj's Avatar
    Join Date
    Mar 2007
    Posts
    53
    Vote Rating
    1
    tolstoj is on a distinguished road

      0  

    Default


    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...

    Code:
    //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

  7. #7
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    16
    jack.slocum will become famous soon enough

      0  

    Default


    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.

  8. #8
    Ext User
    Join Date
    Mar 2007
    Posts
    177
    Vote Rating
    1
    Domitian is on a distinguished road

      0  

    Default


    Hey Jack, is this fixed as loadData in the Alpha 2 Rev 5?

  9. #9
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    16
    jack.slocum will become famous soon enough

      0  

    Default


    Yes, loadData was added.

  10. #10
    Sencha User tolstoj's Avatar
    Join Date
    Mar 2007
    Posts
    53
    Vote Rating
    1
    tolstoj is on a distinguished road

      0  

    Default


    Works like a charm

Similar Threads

  1. HttpProxy adjustable timeout ?
    By kalebwalton in forum Ext 1.x: Help & Discussion
    Replies: 11
    Last Post: 13 Jun 2009, 3:50 PM
  2. a3rev4: HttpProxy and YUI-adapter
    By Arikon in forum Ext 2.x: Help & Discussion
    Replies: 13
    Last Post: 28 Jun 2007, 6:31 AM
  3. Help About Parameter
    By reang in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 28 Mar 2007, 8:14 AM
  4. HTTPProxy - Paging Grid problem
    By JasonMichael in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 11 Mar 2007, 9:07 PM
  5. Function parameter keeping scope?
    By SteveEisner in forum Community Discussion
    Replies: 2
    Last Post: 3 Nov 2006, 3:00 PM

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar