Is it possible to pass POST data to JSONP? Or should all data be passed to querystring as a GET request? any sample code.
thank
If you are using jQuery try $ .post ()
http://api.jquery.com/jQuery.post/
Edit: A more detailed solution is here: How to use getJSON while sending data using the post method?
No, you cannot send data in JSONP. JSONP must be "sent" as a script tag, and script tags cannot receive POST information.
Hope this helps.
:
$.ajax({ url: ajaxUrl, dataType: 'jsonp', type: 'GET', cache: false, success: sCallbackFunction, error: eCallbackFunction, jsonpCallback: jsonpCallbackFunction, data: dataObject });
Source: https://habr.com/ru/post/1775763/More articles:LazyTableImages for iPhone Sample Code Refresh Question - iphoneFinite Difference Optimization with SSE - optimizationWinCE - unable to start debugging - visual-studio-2008Why disable the standard output buffer for multithreading? - cHow to reduce the size of JBOSS? - javaPHP arrays and memory allocation - arraysC запустить внешнюю программу и получить результат - cMonotouch Threading - Best Design - multithreadingRenaming Routing Helpers in Rails 3 Routing - ruby | fooobar.comSilverlight 4: chart management - chartsAll Articles