1
我正在嘗試提交表單後進行頁面刷新。該頁面當前顯示基於特定查詢的sql行列表。表格會改變列的狀態,因此有些項目可能不符合要顯示的標準。提交表單後Jquery移動頁面刷新
目前,我有這樣的形式:
<form action="<?=$_SERVER['PHP_SELF']; ?>" method="post">
<input type=hidden name="potential" value="<?=$assignment['potentialid'];?>"
<fieldset>
<div data-role="fieldcontain">
<div class="ui-grid-b">
<div class="ui-block-a">
<label for="user_name" class="user_name">User:</label>
</div>
<div class="ui-block-b">
<select name="user_name"><?php users($name);?></select><br>
</div>
</div> <!-- /close grid -->
<div class="ui-grid-b">
<div class="ui-block-a">
<label for="quadrant" class="quadrant">Change Quadrant:</label>
</div>
<div class="ui-block-b">
<select name="quadrant">
<option value="<?=$assignment['cf_648']?>" selected><?=$assignment['cf_648']?></option>
<option value="1-1 Create">1-1 Create</option>
<option value="1-2 Shape">1-2 Shape</option>
<option value="1-3 Assess">1-3 Assess</option>
<option value="1-4 Formalize">1-4 Formalize</option>
<option value="2-1 Determine">2-1 Determine</option>
<option value="2-2 Act">2-2 Act</option>
<option value="2-3 Serve">2-3 Serve</option>
<option value="2-4 Store">2-4 Store</option>
<option value="3-1 Feel">3-1 Feel</option>
<option value="3-2 Experience">3-2 Experience</option>
<option value="3-3 Share">3-3 Share</option>
<option value="3-4 Impress">3-4 Impress</option>
<option value="4-1 Understand">4-1 Understand</option>
<option value="4-2 Prioritize">4-2 Prioritize</option>
<option value="4-3 Complete">4-3 Complete</option>
<option value="4-4 Communicate">4-4 Communicate</option>
</select>
</div>
</div>
</div>
<input type="submit" data-theme="a" name="submit" value="Submit" onClick="window.location.reload(true)" rel="external"></input>
</fieldset>
當表單提交,我得到了jQuery Mobile的「錯誤載入頁面」和我實際看到的變化我表單提交後需要點擊f5。該查詢是正確的,並在數據庫中生效。
有關刷新此頁面的最佳方式以及在表單提交後顯示的列表視圖的任何建議?
謝謝!