Hi,
I have a child window which submits a form, then closes. The problem is, sometimes form is not submitting at all. CONFIG: IE 5, WIN 2K, TOMCAT 3.0.
Child JSP:
........
........
<SCRIPT LANGUAGE="JavaScript" PURPOSE="Include" SRC="FeedBack.js"></SCRIPT>
<BODY ......... onload=" LoadFeedbackForm();">
<FORM name="FeedbackForm" method="post" action="" onsubmit="JavaScript:return SubmitFeedback();" >
....................................................
....................................................
<input type="Submit" name="Submit" value="Submit" TABINDEX="4" >
<INPUT TYPE="button" NAME="Close2" VALUE="Cancel" TABINDEX="6" onClick="self.close();">
</FORM>
</BODY>
........
........
FeedBack.js:
var submitFlag=false; // check for multiple submissions
function SubmitFeedback()
{
var ls_form=document.FeedbackForm;
if(submitFlag==false)
{
submitFlag=true;
ls_form.action = 'Feedback?ps_Action=Feedback';
//ls_form.submit(); //This is the point of submission
window.self.close();
return true;
}
else
return false;
}
I have a child window which submits a form, then closes. The problem is, sometimes form is not submitting at all. CONFIG: IE 5, WIN 2K, TOMCAT 3.0.
Child JSP:
........
........
<SCRIPT LANGUAGE="JavaScript" PURPOSE="Include" SRC="FeedBack.js"></SCRIPT>
<BODY ......... onload=" LoadFeedbackForm();">
<FORM name="FeedbackForm" method="post" action="" onsubmit="JavaScript:return SubmitFeedback();" >
....................................................
....................................................
<input type="Submit" name="Submit" value="Submit" TABINDEX="4" >
<INPUT TYPE="button" NAME="Close2" VALUE="Cancel" TABINDEX="6" onClick="self.close();">
</FORM>
</BODY>
........
........
FeedBack.js:
var submitFlag=false; // check for multiple submissions
function SubmitFeedback()
{
var ls_form=document.FeedbackForm;
if(submitFlag==false)
{
submitFlag=true;
ls_form.action = 'Feedback?ps_Action=Feedback';
//ls_form.submit(); //This is the point of submission
window.self.close();
return true;
}
else
return false;
}