李大钊和鲁迅图片:javascript能实现点button后,打开指定的文件格式,比如word.

来源:百度文库 编辑:高考问答 时间:2024/04/29 07:23:21
前台显示输入路线,点button后,能指定打开空白的word文件吗
<TR bgColor=#fafafa>
<TD height=80>
<div align=center>
<table border="0" width="71%" id="table4" height="63">
<tr>
<td bgcolor="#CDCDCD" align="center" width="96%" height="21">
增加记录</td>
</tr>

<form method="POST" action="YuQaIFS_Admin_Routine_Action.asp?action=2" name="YuQaIFS_Routine_Add">
<tr>
<td bgcolor="#F0F0F0" align="center" height="22">
<input name="Title" type="text" size="60"></td>
</tr>
<tr>
<td bgcolor="#E3E3E3" align="center" height="22"><input type="submit" value="提交" name="B1"></td>
</tr>
</form>
</table>
</div>
</TD>
</TR>

以下是对应的action,如果能实现打开word,保存word后,能将word的路径保存到数据库里吗
Title = request("Title")
Set Rs = Server.CreateObject("ADODB.Recordset")
Sql = "select * from YuQaIFS_Routine where Title = '"&Title&"'"
Rs.open sql,conn,1,3
If not Rs.eof then
Response.write"<script language=JavaScript>{window.alert('对不起,该旅游路线名称已经存在,请重新输入');window.location.href='javascript:history.go(-1)'}</script>"
Else
Rs.addnew
Rs("Title")=trim(request("Title"))
Rs.update
Rs.close
Set rs = nothing
response.write"<script language=JavaScript>{window.alert('您成功的添加了一条旅游路线信息');window.location.href='YuQaIFS_Admin_Routine.asp?action=1'}</script>"
End if
能否实现点button后,在通过"文件打开"对话框指定文件
我看了以下的文章http://www.360doc.com/showGroupWeb.aspx?ArticleID=56231&GroupID=11
http://blog.joycode.com/error.aspx?aspxerrorpath=/kaneboy/archive/2004/11/03/37889.aspx