Quantcast
Channel: OKWAVE 閲覧数の多い質問(Java/253)【本日】
Viewing all articles
Browse latest Browse all 68675

input type=image で フォームが2回送信される

$
0
0
お世話になっております。 Strutsで開発をしています。 input type=image で フォームを送信しプログラム 上でカウントをアップする箇所で嵌っています。 送信自体は上手くいくのですが、何故か2重にサブミットされている らしく、カウントが一回余計にされてしまいます。 ネットで調べたところ、Microsoftも認めているバグだということ が解りましたが、回避方法が見つかりません。 http://support.microsoft.com/kb/822276/ja scriptを使わなければ発生しないとのことですが、 送信結果をポップアップで表示しなければならず 解決策が見つからない状態です。 実際のjspコード <html:form action="/opbook" method="post" onsubmit="window.open('','popup','width=780,height=585,resizable=no')<html:form " target="popup"><html:hidden name ="<%= ReferenceBookBean.BEAN_NAME %>" property="id" /> <input type="image" src="<%= BaseBean.F_URL %>book_detail_eturan_b.gif" width="172" height="51" border="0" onclick="doSubmit(); return false; > </td> </html:form> 何か良い方法はないでしょうか?

Viewing all articles
Browse latest Browse all 68675

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>