How to make Jquery load() to work via get and not post?

If using this:
$('#someid').load('/someurl');
it is get request
But if you use this:
var data = $('#somebtn').data(); 
$('#someid').load('/someurl',data);

Goes post.
It might be logical, but you have to get in such a situation get.
Of course you can use $.ajax, or parse the data and form ?id=id etc. Please do not suggest alternatives. I'm aware of and will possible. But it may be still possible in load transfer parameters and send get request. Climb on the docks, did not find nothing on this subject, but maybe I'm blind.
June 27th 19 at 15:23
2 answers
June 27th 19 at 15:25
Solution
in load transfer parameters and send the get request

Impossible. Data is transmitted only POST-om. To GET you can only in the parameters of the url to pass, and that there is a limit on the length.
Thank you for giving the answer to the question, not what I expected. Sorry, will have to form a url with parameters. The length of I does not matter there limit far, even in theory. - Henderson_Beat commented on June 27th 19 at 15:28
June 27th 19 at 15:27
Solution
Thank you, really do not understand what is the link, I have the same thing in the issue described. - Henderson_Beat commented on June 27th 19 at 15:30
: proof )) - Henderson_Beat commented on June 27th 19 at 15:33

Find more questions by tags AJAXjQuery