我正在使用boxy jquery插件來顯示我的模態形式。 http://onehackoranother.com/projects/jquery/boxy/Boxy模態插件返回按鈕表單提交後再次顯示
在我產卵包含在提交給自己這樣一個形式的模式頁:
<script type='text/javascript'>
$(function() {
$('.boxy').boxy({modal: true, closeText: '', draggable: false, unloadOnHide: true});
});
</script>
<div class="reportPop hiddenContent" id="reportPop">
<form action="" method="post" name="reportContent">
<p><?php echo $t_report_content_message_text; ?></p>
<br />
<input type="hidden" value="<?php echo $post->ID ?>" name="reported_item_id" />
<input type="hidden" value="Question" name="reported_type" />
<input type="hidden" value="<?php echo $post->ID; ?>" name="question_id" />
<input type="hidden" value="1" name="report_content" />
<input type="submit" value="<?php echo $t_report_question;?>" />
</form>
<div class="clear"></div>
</div>
我都爲形式的工作功能提交,但一旦我提交表單和嘗試使用後退按鈕,它再次顯示模式,而不是所需的體驗。在沒有打開模式的情況下,只看到頁面。
任何想法?
你可以把你的JavaScript – Sender
剛剛添加的四四方方的調用JS代碼 – estern