PDA

View Full Version : The request URL is too long در ajax



resident
سه شنبه 06 آذر 1397, 19:30 عصر
سلام.
من ajax زیر رو دارم

$.ajax({
url: URL,
dataType: 'html',
data: {
Condition: con
},
type: 'GET',
success: function (data) {
}
,
error: function (xhr, status, error) {
alert("error");
}
});

درست کار می کنه اما اگه طول مقداری که به Condition در قسمت data پاس داده میشه زیاد باشه خطا میده که :
The request URL is too long (https://stackoverflow.com/questions/6955302/http-error-414-the-request-url-is-too-long)



چه راه حلی براش وجود داره؟

charcharkh
چهارشنبه 07 آذر 1397, 10:41 صبح
سلام

type رو post بزن ببین درست میشه ؟!