服务器端javascript弹出对话框和文件、目录操作
//服务器弹出对话框
if (lcSID == "1" && (txtNsp.Text.Trim() != lcNewspaper || Convert.ToDateTime(txtNspdate.Text.Trim()) != Convert.ToDateTime(lcNspdate)))
{
string lcJs = "var varname = window.confirm(\"数据不一致,系统记录报纸是 " + ViewState["lcNewspaper"].ToString() + ",时间是" + ViewState["lcNspdate"].ToString() +"\\n\\n\\n是否报告错误?“确认”提交报告并通知主管,“取消”重新录入\"); if (varname==true) {window.location='y_pdfcode5.aspx?MID=" + lcMID + "';};";
lcJs = "<script>" + lcJs + "</script>";
ClientScript.RegisterStartupScript(this.GetType(), "clear", lcJs);
return;
}
//服务器端复制文件
if (File.Exists(path + "\\" + txtSoawp.Text.Trim() + ".pdf") == true)
{
//File.Copy(Server.MapPath("被复制的文件相对路径"), Server.MapPath("目的位置相对路径"), true);
File.Copy(@"c:\tmp\1.pdf", path + "\\" + txtSoawp.Text.Trim() + ".pdf", true);
}
else
{
File.Move
相关文档:
scrollHeight: 获取对象的滚动高度。
scrollLeft:设置或获取位于对象左边界和窗口中目前可见内容的最左端之间的距离
scrollTop:设置或获取位于对象最顶端和窗口中可见内容的最顶端之间的距离
scrollWidth:获取对象的滚动宽度
offsetHeight:获取对象相对于版面或由父坐标 offsetParent 属性指定的父坐标的高度
offsetL ......
每次用Google的
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml(num);
&n ......
/*****************************************************************************
* md5.js
*
* A JavaScript implementation of the RSA Data Security, Inc. MD5
* Message-Digest Algorithm.
*
* Copyright (C) Paul Johnston 1999. Distributed under the LGPL.
************************************** ......
页面中有一个table包含两列,数据由后台生成,行数不定:(如图)
原始数据:
现在通过javascript进行查询,效果如下三图:
开始查询
查询中......
查询得到的自后结果
JAVASCRIPT代码:
JS代码
<script language="javascript" tpe="text/javascript">
function searchMateria ......
http://www.xker.com/page/e2008/0807/55407.html
最近发现DOMDocument对象很重要,还有XMLHTTP也很重要
注意大小写一定不能弄错.
属性:
1Attributes 存储节点的属性列表(只读)
2childNodes 存储节点的子节点列表(只读)
3dataType 返回此节点的数据类型
4Definition 以DTD或XML模式给出的节点的定义(只读 ......