作者iconograph (return false;)
站内Ajax
标题[问题] js动态表格可以送出表单写入资料库吗?
时间Tue Jul 20 21:20:48 2010
请问以javascript做出动态表格,可以提交表单後写入资料库吗?
我是用以下方式insert row,一直想不出提交表单後怎麽抓动态资料表的值
网页是以asp与javascript撰写的,是应该在javascript insert into吗?
或是有其它方式?
可以请前辈们指点一下吗? 谢谢
// cell 1 - input text
var cell1 = row.insertCell(1);
var txtInp = document.createElement('input');
txtInp.type = 'text';
txtInp.name = INPUT_NAME_PREFIX + iteration;
// Don't refer to ids
//txtInp.id = INPUT_NAME_PREFIX + iteration;
txtInp.size = 40;
txtInp.value = '';
cell1.appendChild(txtInp)X
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 60.244.5.178
※ 编辑: iconograph 来自: 60.244.5.178 (07/20 21:23)
※ 编辑: iconograph 来自: 60.244.5.178 (07/20 21:29)
1F:→ TonyQ:当然可以啊.. 你卡那个部份 07/20 21:36
2F:→ TonyQ:通常都是submit後用asp去抓值~不太确定你的问题在哪 07/20 21:37
3F:→ knives:会不会是新增加出来的input不在form里面阿 07/20 21:47