Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I know that different web servers have different URL lengths, but they are often on the order of 2-6,000 chars.</p> <p>Here's the thing -- if the data being sent to the server is supposed to be stored somewhere, you probably ought to make this a POST request. POST will handle large datasets much more robustly, because the form data goes in the request body. More importantly, GET requests are supposed to be idempotent -- submitting the same request over and over should always produce the same results, and shouldn't change anything elsewhere. If this request is not like that, it should be POST.</p> <p>You may want to try using something like LiveHTTPHeaders (for Firefox) or Fiddler to examine the request that actually gets sent. Compare that to what you expect should be sent.</p> <p>EDIT: Here's an attempt to modify your request to use a POST. Based on my cursory glance at the jq docs, it looks like you may be able to rely on jq to automatically serialize your arrays for you.</p> <pre><code>\$('#HTML_EXECUTE_BUTTON').click(function(event) { \$("#prog").html('&lt;h2&gt;WORKING - &lt;img src="./lib/jqueryui_start/development-bundle/themes/base/images/ui-anim_basic_16x16.gif" /&gt; &lt;/h2&gt;'); var params = \$("#mec_html_step_B_inputs").serializeArray(); var params1 = \$("#mec_html_step_C_inputs").serializeArray(); var params2 = \$("#mec_html_step_D_inputs").serializeArray(); var params3 = \$("#mec_html_step_A_inputs").serializeArray(); params = \$.merge(params, params1); params = \$.merge(params, params2); params = \$.merge(params, params3); params.push({ name: 'menu_mode', value: '5' }); params.push({ name: 'mode', value : '\$mode'}); params.push({ name: 'modetype', value: '\$GLOBAL_MQA_MODE' }); \$("#HTML_EXECUTE_BUTTON").css("background-color",""); my_window = window.open("", "DEBUG WINDOW", "status=1,width=350,height=150"); //for debugging my_window.document.write(dump(params)); //for debugging alert(params.length); // for debugging jQuery.ajax({ url: './cgi_scripts/$GLOB_SCRIPT_NAME', type: 'POST', data: params, error: function(jXHR, sStatus, eError) { // react to failures }, success: function(data, textStatus, jqXHR) { // react to success \$("#grapharea").html(data); \$("#prog").html(" "); } }); event.preventDefault(); return false; }); </code></pre> <p>(I also changed your HTML generation to use proper quotes in the markup. No biggie.)</p> <p>EDIT 2: Now, click event is captured and consumed by this handler.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload