Note that there are some explanatory texts on larger screens.

plurals
  1. POForm in JSP Page not Submitting
    primarykey
    data
    text
    <p>I have a jsp page which has a form embedded and I'm submitting the form via JavaScript.</p> <p>When the page has say aroung 10-50 items the submit is working fine but if the page has aroud 500 items or more its not submitting.</p> <p>After I click the submit button the page just stays in the current page and it just keeps loading.</p> <p>How can I solve this issue.</p> <p>A sample code is shown below:</p> <pre><code>&lt;html&gt; &lt;script type="text/javascript"&gt; function submitChecked() { var approveStr=""; var approveArr=new Array(); if(document.frmReleaseDetail.checkBoxVer.length != undefined) { for(var i=0; i &lt; document.frmReleaseDetail.checkBoxVer.length; i++) { if(document.frmReleaseDetail.checkBoxVer[i].checked) { approveStr +=document.frmReleaseDetail.checkBoxVer[i].value + ","; approveArr.push(document.frmReleaseDetail.checkBoxVer[i].value); } } if(approveStr=="") alert("Please make a selection by clicking atleast one checkbox"); else { document.getElementById("passCheckVerVal").value=approveArr; document.forms["newForm"].submit(); } } //end of if checking multiple checkboxes else //if the page has only one checkbox(version) { if(document.frmReleaseDetail.checkBoxVer.checked) { window.location = "process.jsp?passCheckVer="+document.frmReleaseDetail.checkBoxVer.value+'&amp;u_trackingRequestID=&lt;%=request.getParameter("u_trackingRequestID")%&gt;'; } else alert("Please make a selection by clicking atleast one checkbox"); } } &lt;/script&gt; &lt;body&gt; &lt;% String newTrackingReqId=request.getParameter("u_trackingRequestID"); %&gt; &lt;form name=frmReleaseDetail&gt; //jdbc code //100's checkbox named checkBoxVer //button to invoke submitChecked javascript function &lt;/form&gt; &lt;form name=newForm" id="newForm" action="process.jsp" method="post"&gt; &lt;input type="hidden" name="passCheckVer" id="passCheckVerVal"/&gt; &lt;input type="hidden" name="u_trackingRequestID" id="u_trackingRequestIDVal" value="&lt;%=newTrackingReqId%&gt;"/&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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