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 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,556
    Answers
    3932
    Vote Rating
    1272
      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! Checkout the CODE tag!

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

  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,556
    Answers
    3932
    Vote Rating
    1272
      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! Checkout the CODE tag!

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

  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
  •