作者applerev (Shokun)
站內Ajax
標題[問題] 物件不支援此屬性或方法
時間Thu Jun 5 17:31:34 2008
這是function部分
function conf_del_ctg(sid){
if(confirm("確認刪除#" + sid + "分類?") == false){
return false;
}
delctg.submit();
}
然後這是其中一行的php
(太長..所以分行)
echo '</td><form name="delctg" method="post" action="admin.php?show=ctg">
<input type=hidden name="action" value="delete_ctg">
<td><input type=button value="刪除" onclick=conf_del_ctg('.$record[0].')>
</td></form></tr>';
按下按鈕就跑出就如標題般的錯誤
如果把 delctg.submit(); 給註解起來那就正常
請問問題出在哪~"~?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 163.14.9.105
1F:推 pply:document.delctg.submit(); 06/05 18:48
2F:→ applerev:thx done! 06/05 20:19