-
8 May 2012 5:55 AM #1
Unanswered: Does Ext.util.jsonp have a post Method??
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.
-
11 May 2012 6:33 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,710
- Vote Rating
- 436
- Answers
- 3113
It creates a <script> tag so it will always be GET
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
12 Jun 2012 7:08 AM #3
*edit* Please ignore that. I just remembered that you can't send POSTs with JsonP!
-
12 Jun 2012 7:16 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,710
- Vote Rating
- 436
- Answers
- 3113
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 @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
12 Jun 2012 7:17 AM #5
Thanks for replying - I remembered as you must have been typing. Apologies for wasting your time!


Reply With Quote