これが私のスクリプトのスニペットです:
.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]
});
2 番目の編集可能な列には、最初の選択に基づいてオプションをロードする必要があるため、次を追加しています:内容) その loadurl ステートメントで。誰かが私を正しい方向に向けることができますか?