以下是我的剧本片段:
.makeEditable({
sUpdateURL : "lib/edit.php?what=" + what + "&action=edit&user=" + authUser,
sAddURL : "lib/edit.php?what=" + what + "&action=add&user=" + authUser,
sDeleteURL : "lib/edit.php?what=" + what + "&action=delete&user=" + authUser,
sAddDeleteToolbarSelector : ".dataTables_length",
"oAddNewRowFormOptions" : {
"title" : "Add Machine",
"width" : 400,
"height" : 450
},
"aoColumns" : [null,null,null,null,null,null,null,null,
{
tooltip: 'Click to select warehouse',
loadtext: 'loading...',
type: 'select',
onblur: 'cancel',
submit: 'Ok',
loadurl: 'lib/ajax.php?do=warehouse',
loadtype: 'GET',
}, {
tooltip: 'Click to select location',
loadtext: 'loading...',
type: 'select',
onblur: 'cancel',
submit: 'Ok',
loadurl: 'lib/ajax.php?do=location&wh='+ wh,
loadtype: 'GET',
}, null]
});
第二个可编辑列需要根据第一个选择加载选项,所以我在loadurl中添加:& wh ='+ wh,但我在如何获得必要的选择上画了一个空白(该loadurl语句中的前一个'td'内容)。有人能指出我正确的方向吗?