Results 1 to 3 of 3

Thread: Bufferedstore and post method

  1. #1
    Sencha User
    Join Date
    Jul 2010
    Posts
    1
    Vote Rating
    0
      0  

    Default Bufferedstore and post method

    Hi,
    according to this example below with Bufferedstore , it is possible to load remote data
    but it s a "GET" method.

    How to pass params by "POST" method ?
    Best regards
    https://examples.sencha.com/extjs/6....red-store.html

  2. #2
    Sencha - Forum Administrator
    Join Date
    Sep 2017
    Posts
    1,005
    Vote Rating
    -523
      0  

    Default

    Thank you so much for your post. I apologize for the delay. I have shared this with the support staff to look into at their earliest convenience. Your patience is greatly appreciated!

    Thanks again,

    Michele


  3. #3
    Sencha User
    Join Date
    Oct 2014
    Posts
    14
    Vote Rating
    2
      0  

    Default

    For a store you need to define a proxy. In the given example it uses uses a JsonP proxy.
    The example requests https://www.sencha.com/forum/topics-...sonP.callback1 using http get.

    To do a post request instead you need to use an AjaxProxy: https://docs.sencha.com/extjs/6.7.0/...roxy.Ajax.html especially have a look at the action methods: https://docs.sencha.com/extjs/6.7.0/...-actionMethods where you would need to set read to POST

    The complete proxy configuration would probably look like this:

    Code:
    type: 'ajax',
    url: 'youurl.json',
    reader: {
      rootProperty: 'yourRootProp,
      totalProperty: 'yourCountProp'
    },
    actionMethods: {
      read: 'POST'
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •