1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    4
    Vote Rating
    1
    Barr is on a distinguished road

      0  

    Default Unanswered: Post to server from a proxy

    Unanswered: Post to server from a proxy


    I have got a data grid up and running that can fetch data from my server, and now I need to configure the proxy to make correct POST-request when editing objects.

    It's very simple, the post-request need to go to a specific url (like localhost/Data/User/Edit) and simply submit the fields.

    I found information on how to do this a while ago, but I just cant seem to find it again. I'm looking at proxies and writers in the docs, but I just can't seem to get to it.

    Edit: The problem I am having now is that I can't get AjaxProxy to sent the parameters in a ordinary post-request. It will only sent the new data in Json or xml.

  2. #2
    Sencha User
    Join Date
    Oct 2011
    Location
    Karlsruhe, Germany
    Posts
    21
    Vote Rating
    0
    Answers
    2
    silent is on a distinguished road

      0  

    Thumbs up


    You can change the default headers and some custom headers by using:

    http://mgd.im/ext/docs/index.html#/a...ax-cfg-headers and
    http://mgd.im/ext/docs/index.html#/a...y.Ajax-cfg-api

Thread Participants: 1