Direkomendasikan: Cara mengimplementasikan pemrosesan beberapa nama domain di ruang yang sama Ambil dua nama domain ini sebagai contoh: http://www.knowsky.com/http://code.knowsky.com/the Names Domain terikat ke ruang yang sama, HA, tetapi mereka akan melompat ke direktori yang berbeda. Mereka tidak diimplementasikan pada pengaturan IIS, tetapi hanya sepotong kecil kode ASP.
Formulir permintaan dapat berisi N item, dan saat menambahkan formulir permintaan, Anda perlu menambahkan kode secara dinamis.
Tabel dinamis
| Berikut ini adalah konten yang dikutip: <Border Tabel = 0 Lebar = 98% ID = TABZX NAMA = TABZX ALIGN = Center class = table_list> <tr> <td class = th_list width = 10%> Kolom a </td> <td class = th_list width = 10% align = center> Kolom B </td> <td class = th_list width = 10% align = center> Kolom c </td> <td class = th_list width = 5% align = center> Kolom d </td> <td class = th_list width = 5% align = center> Kolom e </td> <td class = th_list width = 5% align = center> Kolom f </td> <%- <td class = th_list width = 7% align = center> Kolom g </td> -%> <td class = th_list width = 13%> [ <a href = javascript: doselect (450.400, 'formedit.supplyid')> <font Color = FF0000> Pilih Perangkat </font> </a>] </td> </tr> </boable> Kode JS adalah sebagai berikut (daftar perangkat muncul sesuai dengan kondisi, dan kemudian pilih perangkat yang ada) fungsi doselect (lebar, tinggi, ctrlobj) { var k; var s = objek baru (); k = showmodaldialog (/applications_add_addsearch.jsp.s.dialogwidth:320px;status:no;scroll:no;dialogheight:280px); if (k! = null) { var url = /AppLicationsAction.do?method=insertAddseach&stid=k[ & Sbid = k [1] & ggid = k [2]; window.open (url, 'newwindow', 'height = 600, width = 800, toolbar = tidak, menubar = tidak, scrollbars = ya, dapat diputar ulang = tidak, lokasi = tidak, status = tidak'); } } ===================================== Tambahkan kode data secara dinamis sesuai dengan seleksi <bahasa skrip = vbscript> redup lcountmx lcountmx = 0 Fungsi Badd (Stid, Stname, VCID, VCNAME, GGID, GGNAME, DWEI, SLIANG, DJIA) lcountmx = lcountmx 1 redup orow, ocell, ii atur orow = tabzx.inserTrow orow.id = trzx & lcountmx Setel ocell = orow.insertcell redup SSS sss = <input type = hidden name = cgdjmx & lcountmx & value => sss = sss & <input type = name tersembunyi = stid & lcountmx & value = & stid &> sss = sss & <input type = hidden name = stname & lcountmx & value = & stname &> sss = sss & <input type = name tersembunyi = vcid & lcountmx & value = & vcid &> sss = sss & <input type = name tersembunyi = ggid & lcountmx & value = & ggid &> SSS = SSS & Stname ocell.innerhtml = ss ocell.classname = listCellRow Setel ocell = orow.insertcell ocell.classname = listCellRow ocell.align = tengah ocell.width = 60 ocell.innerhtml = <input type = name tersembunyi = vcname & lcountmx & value = & vcname &> & vcname Setel ocell = orow.insertcell ocell.classname = listCellRow ocell.align = tengah ocell.width = 60 ocell.innerHtml = <input type = hidden name = gGname & lcountmx & value = & ggname &> & gGname Setel ocell = orow.insertcell ocell.classname = listCellRow ocell.align = tengah ocell.width = 60 ocell.innerhtml = <input type = ukuran teks = 10 name = thao & lcountmx & value = ''> Setel ocell = orow.insertcell ocell.classname = listCellRow ocell.align = tengah ocell.width = 60 ocell.innerhtml = <input type = name tersembunyi = dwei & lcountmx & value = & dwei &> & dwei Setel ocell = orow.insertcell ocell.classname = listCellRow ocell.align = tengah ocell.width = 60 ocell.innerHtml = <input type = ukuran teks = 3 name = sliang & lcountmx & onchange = 'changeFun (& lcountmx &)' value = ''> <%- Setel ocell = orow.insertcell ocell.classname = listCellRow ocell.align = tengah ocell.width = 60 ocell.innerHtml = <input type = ukuran teks = 3 name = djia & lcountmx & onchange = 'changeFun1 (& lcountmx &)' value = ''> -%> Setel ocell = orow.insertcell ocell.classname = listCellRow ocell.innerHtml = <input type = 'tombol' value = 'delete' onclick = 'vbscript: bdel (& lcountmx &)' id = tombol7 name = tombol7> ocell.align = tengah document.applicationsform.ypsl.value = lcountmx fungsi akhir fungsi bdel (l) tabzx.deleterow document.getElementById (trzx & l) .rowindex fungsi akhir Fungsi Changefun (OBJ1) Ubah Obj1 fungsi akhir fungsi changefun1 (obj1) perubahan1 obj1 fungsi akhir </script> ============================= |
Bagikan: Parse jalur SRC mengekstraksi gambar dalam HTML dari ASP Apa itu RegExp di ASP? Nama Pemeriksaan Karakter adalah konten yang direferensikan: Public Function CheckName (str) CheckName = True Dim Rep, Pass Set Rep = New RE
2 halaman Total halaman sebelumnya halaman berikutnya