I have a button in the JSP page, after clicking on the button, the page is submitted and then some are recognized And finally a pop up is displayed.
However, when the button is clicked, the page gets refreshed.
How can I avoid this?
My code:
jsp file:
& lt; S: a href = "#" Accesskey = "w" onclick = "Upload ('Check Withdrawal')" & gt; & Lt; Img src = "../../ KY / images / normal / button / scheme_specialists" alt = "return scheme button" style = "border: none;" / & Gt; & Lt; / S: One & gt; & Lt; S: If test = "# request .allowwithdrawPlan! = Null" & gt; & Lt; S: Include value = "ConformationPopup.jsp" /> JS code:
function upload (verb) {document.PlanSummaryForm.action = action; Document.PlanSummaryForm.submit (); Validation = true; } I think that jquery AJAX call is your solution which will refresh you page. Can apply without For Orders: For AJAX:
No comments:
Post a Comment