我有一個存儲過程具有「選擇」參數Coldfusion執行存儲過程而不刷新頁面?
<cfstoredproc procedure="MyProcedure" datasource="MyDataSource">
<cfprocparam type="in" cfsqltype="cf_sql_integer" value="#selection#" null="no">
</cfstoredproc>
我有一個選擇框,用戶可以選擇框,我想使用jQuery「呼」的存儲過程:
$(document).ready(function(){
$('#selectbox').change(function() {
// update my #selection# variable
// run the stored procedure again (the one above)
});
});
有沒有辦法做到這一點?我知道這是混合客戶端和服務器端的代碼,但是因爲有在頁面上多形式,我不能刷新頁面...
嗯......如果我我在同一頁上改變的內容可以只是我像$獲得(「?SELECTVAL =」) – redconservatory 2011-12-14 02:12:00