2013-05-01 55 views
0

我有一個簡單的表單,其中包含一些包含轉義的XML數據的輸入。當我提交表格時(僅適用於IE9),數據不會在第一次嘗試中發送;但是,如果我點擊瀏覽器後退按鈕並再次提交POST數據發送。有任何想法嗎?下面的形式:使用POST方法的IE9表單..首次提交時不提交數據

<form id="bundleOrderInfo" action="/catalog/bundleSubmit" method="POST" ENCTYPE="utf-8" style=""> 
<input type="text" name="requestForHidden" id="requestForHidden" value="SOMEVALUE"> 
<input type="text" name="itemName" id="itemName" value="SOME SERVICE VALUE"> 
<input type="text" name="optionNames" id="optionNames" value="DB Modification||Operational Readiness||Server Capacity Adjustment||Storage Capacity Adjustment||Connectivity Enablement||Security Alignment||">   
<input type="text" id="userSelections" name="userSelections" type="text"> 
<input type="text" id="overallOptions" name="overallOptions" type="text" value='&lt;form&gt;&lt;label id="opt1"&gt;(1) DB Modification&lt;/label&gt;&lt;checkbox readonly="false" label="(1) Operational Readiness" id="opt2" &gt;true&lt;/checkbox&gt;&lt;checkbox readonly="false" label="(1) Server Capacity Adjustment" id="opt3" &gt;true&lt;/checkbox&gt;&lt;checkbox readonly="false" label="(1) Storage Capacity Adjustment" id="opt4" &gt;true&lt;/checkbox&gt;&lt;checkbox readonly="false" label="(1) Connectivity Enablement" id="opt5" &gt;true&lt;/checkbox&gt;&lt;checkbox readonly="false" label="(1) Security Alignment" id="opt6" &gt;true&lt;/checkbox&gt;&lt;/form&gt;'> 


<input type="submit" value="Submit"> 
       </form> 
+0

你可能在使用IE命中F12的代碼中遇到問題,然後開始調試,這會讓你知道是否有javascript錯誤。 – 2013-05-01 17:43:09

回答

-2

嘗試更改提交值: 值= 「提交」

要: 值= 「發送」

或使用小寫字母S IN提交

希望這會有所幫助!

+0

nope,我試了兩次,並給了我每個相同的行爲(即沒有發佈數據的第一次發送,但後來當我點擊瀏覽器後退按鈕,並再次發送,它在那裏)。它真的很奇怪,因爲它沒有用Firefox做 – Mike 2013-05-01 16:47:45