document.form.submit();
사파리 10.0.3 에서 작동하지 않는 다른 모든 브라우저 브라우저 MAC에서 작동되지만 사파리 5 창을하고있다 버전 및 모든 다른 브라우저.document.form.submit(); MAC에서 사파리 10.0.3 브라우저에서 작동하지 않습니다,하지만 사파리 5 윈도우 버전과
양식 객체가 생성되었지만 제출되지 않았습니다.
Javasciprt 파일 =======에서HTML file ======
<html>
<head>
<META HTTP-EQUIV="Cache-Control" CONTENT="no-store, must-revalidate"></META>
<META HTTP-EQUIV="expires" CONTENT="-1"></META>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"></META>
<title><xsl:value-of select="res:getString($ISO, 'Mileage1284')"/></title>
<link rel="STYLESHEET" type="text/css"><xsl:attribute name="href"><xsl:value-of select='$CSS'/></xsl:attribute></link>
<script type="text/javascript"><xsl:attribute name="SRC">/Resources/Jscript/<xsl:value-of select='$ISO'/>/Common/ErrorStrings.js</xsl:attribute></script>
<script type="text/javascript" src="/Resources/Calendar/DatePicker.js"></script>
<script type="text/javascript" src="/Resources/Jscript/Claims/OOPxsl.js"></script>
<script type="text/javascript" src="/Resources/Jscript/Common/preventClick.js"></script>
</head>
<body leftmargin="2" topmargin="2" onload="CalcDistAmount(); setBillable(); ">
<!--<xsl:attribute name="onload"></xsl:attribute>-->
<form name="AddEXPForm" action="/dcal/ClaimsServlet" method="post" TARGET="iframe9">
<input type="hidden" name="action" value="editMileDetails"/>
<!-- Start: Added CSRF token for EditMileDetails -->
<input type= "hidden">
<xsl:attribute name="name"><xsl:value-of select="//Root/DCalApp/CSRF_PARAMETER_NAME"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="//Root/DCalApp/CSRF_PARAMETER_VALUE"/></xsl:attribute>
</input>
<!-- End -->
<input type="hidden" name="commaStyle" value="N"/>
<input type="hidden" name="claimIndex"><xsl:attribute name="VALUE"><xsl:value-of select='//Root/DCalApp/claimIndex'/></xsl:attribute></input>
<input type="hidden" name="claimID"><xsl:attribute name="VALUE"><xsl:value-of select='//Root/claimID'/></xsl:attribute></input>
<input type="hidden" name="CardID"><xsl:attribute name="VALUE"><xsl:value-of select='//Root/CardID'/></xsl:attribute></input>
<!--Button table-->
<table width="479" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="/Resources/images/sp.gif" width="1" height="5" alt="" border="0"/></td>
</tr>
<tr>
<td class="tablebgcolorlist"><img src="/Resources/images/sp.gif" width="1" height="1" alt="" border="0"/></td>
</tr>
<tr>
<td><img src="/Resources/images/sp.gif" width="1" height="3" alt="" border="0"/></td>
</tr>
<tr>
<td height="30" align="center" class="buttonbarbg">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<input type="button" class="submit" onClick="doSubmit()">
<xsl:attribute name="value">
<xsl:value-of select="res:getString($ISO, 'Submit1793')"/>
</xsl:attribute>
</input><xsl:text disable-output-escaping="yes">&nbsp;</xsl:text>
<input type="button" class="submit" onClick="window.close()">
<xsl:attribute name="value">
<xsl:value-of select="res:getString($ISO, 'Close638')"/>
</xsl:attribute>
</input><xsl:text disable-output-escaping="yes">&nbsp;</xsl:text>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!--End of Button table-->
<!--bottom curve table-->
<!--end of bottom curve table-->
</form>
</body>
</html>
function doSubmit(){
// called on click of submit button
document.AddEXPForm.submit();
window.close();
}
당신의 도움 감사합니다 감사합니다!
코드를 공유하십시오. – brk
여기에 문제를 표시하는 최소한의 예를 게시해야합니다 (가능한 경우 실행 파일 스 니펫). – RobG
코드를 추가하면 누구든지이 문제를 해결할 수 있습니까 ?? – Sandy