Results 1 to 5 of 5

Thread: Does Ext.util.jsonp have a post Method??

  1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    4
    Vote Rating
    0
      0  

    Default Unanswered: Does Ext.util.jsonp have a post Method??

    Hi,

    I have an application which requires POST method. Im using a jsonp response from web server. Does Ext.Util.Jsonp have a POST method instead of GET?? If not, is there any alternate method in which i can approach this??

    Thanks in Advance.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,336
    Answers
    3885
    Vote Rating
    1296
      0  

    Default

    It creates a <script> tag so it will always be GET
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha Premium Member
    Join Date
    Nov 2010
    Posts
    14
    Answers
    1
    Vote Rating
    0
      0  

    Default

    *edit* Please ignore that. I just remembered that you can't send POSTs with JsonP!

  4. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,336
    Answers
    3885
    Vote Rating
    1296
      1  

    Default

    JsonP creates a <script> element to do the cross domain loading as the <script> element is not bound to the same cross origin security that an Ajax request is. <script> element only will load in a GET method, there is NO way to change the method in a <script> element.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  5. #5
    Sencha Premium Member
    Join Date
    Nov 2010
    Posts
    14
    Answers
    1
    Vote Rating
    0
      0  

    Default

    Thanks for replying - I remembered as you must have been typing. Apologies for wasting your time!

Tags for this Thread

Posting Permissions

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