<div dir="ltr"><div>You can do <br></div><div><br></div><div>ajax type: 'POST' <br></div><div><br></div><div>and it will use POST insted of GET.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 21, 2018 at 10:07 AM, Esteban A. Maringolo <span dir="ltr"><<a href="mailto:emaringolo@gmail.com" target="_blank">emaringolo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'm currently doing a an AJAX call with #callback:value: where the value<br>
is a stringified JSON I built at client side and which on completion<br>
returns a script file. But the value payload is passed encoded in the<br>
URI, and this has a size limit.<br>
<br>
Is there a way to do a callback:value: using POST instead of GET?<br>
<br>
The call is something like this:<br>
<br>
( html jQuery id: self tableId )<br>
  on: 'paste'<br>
  selector: nil<br>
  data: ( ( html jQuery ajax )<br>
    callback: [ :json | self pasteMatrix: ( WAJsonParser parse: json ) ]<br>
      value: ( JSStream on: 'JSON.stringify(arguments[0])' );<br>
    onComplete: ( html jQuery ajax<br>
      script: [ :s | self scriptValidatedReloadOn: s ] ) ) asFunction.<br>
  call: (JSStream on: 'pasteHandler' )<br>
<br>
<br>
And I'd like to have a POST based function that sends the JSON string in<br>
it's `data` payload instead.<br>
<br>
Regards,<br>
<br>
<br>
Appendix A:<br>
<br>
`pasteHandler` is a custom function that detects if the contents being<br>
pasted into a text input are not a single value but instead are values<br>
copied from an Excel file, in tab separated format, and if so overrides<br>
the event propagation, creates a matrix (array of arrays), and calls the<br>
function passed to the `data:` parameter in the event handler.<br>
<br>
Because the inputs are presented as separate <input> tags within a<br>
table, that's the only way I found to preserve the convenience of having<br>
separate inputs, but with the behavior of a single "grid" for pasting<br>
(and copying) data.<br>
<br>
<br>
function pasteHandler(event){<br>
  var clipboardData, pastedData;<br>
  var e = event.originalEvent;<br>
  var matrix;<br>
<br>
  clipboardData = e.clipboardData || window.clipboardData;<br>
  if (!clipboardData) return false;<br>
<br>
  pastedData = clipboardData.getData("Text");<br>
  matrix = tabMatrix(pastedData);<br>
  if (isMatrix(matrix)) {<br>
    // Stop data actually being pasted<br>
    var point = pastePoint(e.target);<br>
    var matrixHandler = event.data;<br>
    if (matrixHandler) {<br>
      e.stopPropagation();<br>
      e.preventDefault();<br>
      matrixHandler({"matrix": matrix, "point": point});<br>
    }<br>
  }<br>
}<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Esteban A. Maringolo<br>
______________________________<wbr>_________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.<wbr>squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="noreferrer" target="_blank">http://lists.squeakfoundation.<wbr>org/cgi-bin/mailman/listinfo/<wbr>seaside</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><pre style="background-color:rgb(255,255,255)"><pre><br><hr style="font-family:'Times New Roman';white-space:normal;font-size:medium"><table style="font-family:'Times New Roman';padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px"><tbody><tr><td><img src="http://www.mercapsoftware.com/images/logo_nav-principal-cabecera.png"></td><td style="font-family:Verdana;font-size:10px"><div style="font-weight:bold">Gabriel O. Cotelli<br>Desarrollo y Tecnología<br>Mercap</div>Tel: +54 (011) <b>5352.2372 al 74</b><br><a href="http://www.mercapsoftware.com" target="_blank">http://www.mercapsoftware.com</a></td></tr></tbody></table><div style="white-space:normal;font-family:Verdana;font-size:10px">This message is confidential. It may also contain information that is privileged or otherwise legally exempt from disclosure. If you have received it by mistake please let us know by e-mail immediately and delete it from your system; also you shouldn't copy the message nor disclose its contents to anyone. Thanks.</div><hr style="font-family:'Times New Roman';white-space:normal;font-size:medium">
</pre></pre></div></div></div></div></div></div></div></div>
</div>