在服务器端如何获得客户端二唯数组的值

lubeenet 2004-04-08 03:33:32
我在客户端做了一个这样的二唯控件数组,如下:
<HTML>
<HEAD>
<title>调试</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<SCRIPT language=vbscript>
Sub DisplayCloudDataGrid(SelectedRow) '显示所有行
str="<table width=800 border=1 bordercolor=White bgcolor=#eff8fc cellpadding=0 cellspacing=0>"
str=str & " <tr align=center bgcolor=#006699 height=24><td></td>"
For j=0 To colnum-1
str=str & "<td><font color=white>" & ctitle(j) & "</font></td>"
next
str=str & "</tr>"
For i=1 To line
str=str & "<tr align=center language=javascript onmouseover=this.bgColor='skyblue' onmouseout=this.bgColor=''"
str=str & ">"
str=str & "<td><input type=button value=-></td>"
For j=1 To colnum
if SelectedRow=i then
str=str & "<td><INPUT type=text id=r"& i &"c"& j &" name=r"& i &"c"& j &" maxlength="& maxlen(j-1) &" value="& chr(34) & a(i-1,j-1) & chr(34) &" onfocus=""thisForm.txtfocus.value=1"" onblur=""thisForm.txtfocus.value=0""></td>"
else
str=str & "<td>" & a(i-1,j-1) & "</td>"
end if
Next
str=str & "</tr>"
Next
str=str & "</table>"
window.t.innerhtml=str
document.all.item("r" & SelectedRow & "c1").focus()
document.all.item("r" & SelectedRow & "c1").select()
window.status="输入的总记录数:" & line
End Sub
</SCRIPT>
<SCRIPT language=vbscript id="cloud's datagrid part 1">
Dim line,colnum,str,ctitle(),maxlen(),a(),i
colnum=8
line=3
ReDim a(3,colnum)
a(0,0)="001"
a(0,1)="张三"
a(0,2)="男"
a(0,3)=30
a(0,4)=500
a(0,5)=100
a(0,6)=50
a(0,7)=550
a(1,0)="002"
a(1,1)="李四"
a(1,2)="男"
a(1,3)=30
a(1,4)=500
a(1,5)=200
a(1,6)=0
a(1,7)=700
a(2,0)="003"
a(2,1)="王二"
a(2,2)="男"
a(2,3)=30
a(2,4)=550
a(2,5)=50
a(2,6)=0
a(2,7)=600
ReDim ctitle(colnum)
ctitle(0)="编号"
ctitle(1)="姓名"
ctitle(2)="性别"
ctitle(3)="出勤天数"
ctitle(4)="基本工资"
ctitle(5)="奖金"
ctitle(6)="罚金"
ctitle(7)="合计工资"
ReDim maxlen(colnum)
maxlen(0)="10"
maxlen(1)="10"
maxlen(2)="10"
maxlen(3)="10"
maxlen(4)="10"
maxlen(5)="10"
maxlen(6)="10"
maxlen(7)="10"
</SCRIPT>
</HEAD>
<body bgcolor=#d4d0c8 leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form name=thisForm id=thisform method=post>
<table cellspacing="0" cellpadding="0" border="1" width="800" bordercolorlight="#000000" bordercolordark="#ffffff" align="center">
<input type=Hidden name=txtFocus id=txtFocus>
<tr valign=top align=center>
<td height=350 bgcolor=#ffffff>
<div id=t class="div" style="overflow:auto;width=780;height=340;left=10">
<script language=vbscript>
DisplayCloudDataGrid(3)
</script>
</div>
</td>
</tr>
<tr align=middle>
<td align=middle width=20>
<INPUT type="button" value="保 存" id=button name=button1 class=button>
</td>
</tr>
</TABLE>
<input type=hidden name="line" value="3">
</FORM>
</body>
</HTML>

单击保存之后,在服务器端如何得到数组a(i,j)的值啊,搞了好久,没搞出来,请各位高手帮帮俺小弟啊!!!
...全文
8 点赞 收藏 3
写回复
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
lubeenet 2004-04-08
高手们,帮忙啊
回复
lubeenet 2004-04-08
肥兄,好象不行啊!
回复
vvfish119 2004-04-08
<input type=hidden name="arr" value=a(i,j)>
回复
发动态
发帖子
ASP
创建于2007-09-28

2.8w+

社区成员

ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
申请成为版主
社区公告
暂无公告