uri too long, when use awe.open
I need to send big structure through awe.open, when i try use something like this awe.open(popupName, { params: params, tag: { cont: cell } });
I get error 414 (URI Too Long), is it possible to send parameters in the request body and not in the querrystring?
Evgeny Alekseev
asked
at 05 Jul 2019
Answers
-
right, that's because the popup get content request is a
get
and your parameters have reached the limit, you could try to make it apost
, inutils.js
findawe.bfr = function (opt) {
and change the next line to this:if (opt.type !== 'post') {
of course you could check for other
opt.type = 'post';
//return;
}opt
parameters as well, but for now try the aboveOmuanswered at 05 Jul 2019-
I get POST after refresh, and get params in body. Thx for help with this. I have a questions: 1. >of course you could check for other opt parameters as well, but for now try the above What other opt params i need to check? 2. I need passat 05 Jul 2019 Evgeny Alekseev
GridId
toParameterFunc
, any way to do this? -
1. do a console.log(opt) to see the params 2. all the ways to send params are shown in the demo, link mentioned above please note from our demo that params set in InitPopup and the ones set in awe.open are merged and you get all of them in the controller, probably for you it would be easier to set the gridid param in the awe.open and leave the rest of them in InitPopupat 05 Jul 2019 Omu
-
Thanks for the answers, I need to pass a GridId to theat 05 Jul 2019 Evgeny Alekseev
ParameterFunc
function. For example, now specifying the functionParameterFunc
looks like this:.ParameterFunc("GetParamsForPopups")
I need something like.ParameterFunc($"GetParamsForPopups({gridId})")
-
here's an example:at 05 Jul 2019 Omu
function f1(gridId){
and use it like this:
return function(){
return { p1: gridId };
}
}.ParameterFunc("f1('grid1')")
-
Thank you, it works correct.at 06 Jul 2019 Evgeny Alekseev
-
InitPopup
like in this demo: https://demo.aspnetawesome.com/PopupDemo#Sending-client-side-parameters-to-server-on-content-loadParameterFunc
Also put params into querryString