[求助]JS数据传送到ASP~~~
这段代码~~~我想把JS的getTday()的值传送给ASP里面的tday,应该怎么实现?各位大哥帮帮忙~~~
<script language="javascript">
function initArray()
{
for(i=0;i<initArray.arguments.length;i++)
this[i]=initArray.arguments[i];
}
var isnMonths=new initArray("01","02","03","04","05","06","07","08","09","10","11","12");
today=new Date();
function getFullYear(d)
{
yr=d.getYear();
if(yr<1000)yr+=1900;
return yr;
}
function getTday()
{
y=getFullYear(today);
m=isnMonths[today.getMonth()];
d=today.getDate();
tday=y+"-"+m+"-"+d;
return tday;
}
</script>
<table width="100%" border="1">
<thead>
<tr>
<th ALIGN="LEFT"><b>内容</b></th>
</tr>
</thead>
<tbody>
<!--webbot bot="DatabaseRegionStart" s-columnnames="公布日期,有效日期,内容" s-columntypes="135,135,202" s-dataconnection="advices" b-tableformat="TRUE" b-menuformat="FALSE" s-menuchoice="内容" s-menuvalue="内容" b-tableborder="TRUE" b-tableexpand="TRUE" b-tableheader="TRUE" b-listlabels="TRUE" b-listseparator="TRUE" i-listformat="0" b-makeform="TRUE" s-recordsource="公布" s-displaycolumns="内容" s-criteria="[有效日期] NLT {tday} +" s-order="[公布日期] +" s-sql="SELECT * FROM 公布 WHERE (有效日期 &gt;= '::tday::') ORDER BY 公布日期 ASC" b-procedure="FALSE" clientside suggestedext="asp" s-defaultfields="tday=" s-norecordsfound="没有记录返回。" i-maxrecords="256" i-groupsize="1" botid="0" u-dblib="../_fpclass/fpdblib.inc" u-dbrgn1="../_fpclass/fpdbrgn1.inc" u-dbrgn2="../_fpclass/fpdbrgn2.inc" tag="TBODY" preview="<tr><td colspan=64 bgcolor="#FFFF00" width="100%"><font color="#000000">这是数据库结果区域的开始。 必须用浏览器从 Web 服务器获取该网页,才能正确显示该网页。当前网站存储于本地硬盘或网络上。</font></td></tr>" startspan b-UseDotNET="FALSE" CurrentExt sa-InputTypes="135" b-DataGridFormat="FALSE" b-DGridAlternate="TRUE" sa-CritTypes="135" b-WasTableFormat="TRUE" --><!--#include file="../_fpclass/fpdblib.inc"-->
<% if 0 then %>
<SCRIPT Language="JavaScript">
document.write("<div style='background: yellow; color: black;'>该网页的“数据库结果”组件不能显示数据库内容。网页名称必须是以 .asp 结尾,并且网站必须位于支持 Active Server Pages 的服务器。</div>");
</SCRIPT>
<% end if %>
<%
fp_sQry="SELECT * FROM 公布 WHERE (有效日期 >= '::tday::') ORDER BY 公布日期 ASC"
fp_sDefault="tday="
fp_sNoRecords="<tr><td colspan=1 align=""LEFT"" width=""100%"">没有记录返回。</td></tr>"
fp_sDataConn="advices"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=1
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice="内容"
fp_sMenuValue="内容"
fp_sColTypes="&公布日期=135&有效日期=135&内容=202&"
fp_iDisplayCols=1
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="../_fpclass/fpdbrgn1.inc"-->
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="49100" --><tr>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="公布日期,有效日期,内容" s-column="内容" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>内容<font size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"内容")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="29876" --></td>
</tr>
<!--webbot bot="DatabaseRegionEnd" b-tableformat="TRUE" b-menuformat="FALSE" u-dbrgn2="../_fpclass/fpdbrgn2.inc" i-groupsize="1" clientside tag="TBODY" preview="<tr><td colspan=64 bgcolor="#FFFF00" width="100%"><font color="#000000">这是数据库结果区域的结束。</font></td></tr><TR><TD VALIGN=MIDDLE COLSPAN=64><NOBR><INPUT TYPE=Button VALUE=" |< "><INPUT TYPE=Button VALUE=" < "><INPUT TYPE=Button VALUE=" > "><INPUT TYPE=Button VALUE=" >| "> [1/1]</NOBR><BR></td></tr>" startspan --><!--#include file="../_fpclass/fpdbrgn2.inc"-->
<!--webbot bot="DatabaseRegionEnd" endspan i-checksum="56926" --></tbody>
</table>