2012-11-19 57 views

回答

1

之前被髮送到服務器?我不完全確定,連接到Form.Requestsend方法以表單本身和數據發送,但這可能是在請求已被觸發後。

我傾向於不使用Form.Request,正是因爲我必須做這些表單操作等。

而不是使用Form.Request類,我只是在必要時遍歷表單的輸入。

例如

<form id="foobar"> 
    <input type="text" id="lorem" /> 
    <select id="ipsum"> 
     <option>... 
    </select> 
</form> 
<script> 
    var formValues = document.id('foobar').getElements('input, select'); 
</script> 
相關問題