Re: [問題] js動態表格可以送出表單寫入資料庫嗎?
※ 引述《iconograph (return false;)》之銘言:
: 請問以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
其實我是參考http://www.mredkj.com/tutorials/tabledeleterow.html
裡面有個按鈕是submit,我不太清楚submit後的那個form如何去get動態表格的input text
然後get到值是用asp寫入資料庫嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 60.244.5.178
※ 編輯: iconograph 來自: 60.244.5.178 (07/20 21:59)
→
07/20 21:59, , 1F
07/20 21:59, 1F
→
07/20 22:00, , 2F
07/20 22:00, 2F
→
07/20 22:01, , 3F
07/20 22:01, 3F
→
07/20 22:01, , 4F
07/20 22:01, 4F
→
07/20 22:07, , 5F
07/20 22:07, 5F
→
07/20 22:08, , 6F
07/20 22:08, 6F
→
07/20 22:10, , 7F
07/20 22:10, 7F
→
07/20 22:11, , 8F
07/20 22:11, 8F
→
07/20 22:11, , 9F
07/20 22:11, 9F
討論串 (同標題文章)
Ajax 近期熱門文章
PTT數位生活區 即時熱門文章
1
10