浏览模式: 普通 | 列表
4月, 2007 | 1
p.s. asp.net获取的一些参数区别,然后给个处理的实际例子(只要结果,不要效率:-))
Request.Url:
http://localhost/member/companyTagEdit.aspx?txtName=333&txtOrderId=10&act=add&obj=article&objClassId=2&menu=商品展厅&x=7&y=10

Request.FilePath:
/member/companyTagEdit.aspx

Request.Path:
/member/companyTagEdit.aspx

Request.RawUrl:
/mem
...

阅读全文…

FCKeditor 2.3 配置

[ 2007-04-07 17:11:15 | 作者: admin ]
1、FCKeditor 官方文档
http://wiki.fckeditor.net
2、WYSIWYG Web Editor: FCKeditor 2.2 的设置.修改.使用 和 FreeTextBox的简介
http://www.blogjava.net/gump/articles/43556.html
3、FCKeditor2.0在线编辑器的修改与设置-文件上传部分管理部分
http://3rgb.com/b/?act=viewthread&threadid=324
4、FCKeditor 实战技巧
http://www.blueidea.com/tech/web/2006/4073.asp

在2.0版中,开发人员有两种方法来解决这个问题.
那就是指定装载顺序和脚本压缩

装载顺序
从2.0版开始,编辑器按以下步骤装载资源:
.基本页(就是编辑器所在页)以及装入编辑器的JS脚本
...

阅读全文…

Javascript 无缝滚动代码

[ 2007-04-07 17:05:22 | 作者: admin ]
p.s. 看上去不错,调用也简单
引用
//***********************************************************************************
// JavaScript HTML DIV scroll bar controler
//
// by mostone@hotmail.com 2005.06.15
//
// useage:
// create DIV scrollbar
// scroll directions: scroll up/ down/ left/ right
// setp 1:
// in HTML document, add a div tag and give "id" attribute
// setp 2:
// include this file into your HTML and etc document
...

阅读全文…

用Javascript自定义 Title 样式

[ 2007-04-07 16:57:53 | 作者: admin ]
摘自: http://ls.cqwu.net/blog/article.asp?id=525

默认的 title 属性的样子确实不太好看,而且停留时间也有限,所以想完完全全自己定制一个

第一个: Bubble Tooltips
http://web-graphics.com/mtarchive/001717.php
显示效果用 css 控制,加载速度也很快,而且很漂亮,还可以分区域控制.

attachments/200704/07_165834_bubbletooltips.gif


Click Here To Download

第二个:Cross Browser Functionality
...

阅读全文…

showModalDialog 传值,刷新,后退 技巧

[ 2007-04-07 16:43:36 | 作者: admin ]
父窗口刷新
引用
  var vReturn='';
  var strFeature = 'dialogWidth:530px;dialogHeight:470px;status:0;scroll:1:0;help:0;';
  vReturn=window.showModalDialog(strUrl,window,strFeature);

请注意:在第二个参数使用的是window,作用相当于把当前的父窗口当作对象传入到子窗口
在子窗口中使用父窗口的对象:window,但使用时要用dialogArguments引用父窗口对象。例如:

    dialogArguments.location='other.asp'; //父窗跳转
    dialogArguments.location.reload();//父窗刷新
    window.close(); //子窗关闭

 
...

阅读全文…

showModalDialog页面不能自动刷新问题

[ 2007-04-07 16:39:10 | 作者: admin ]
摘自: http://xiajx.spaces.live.com/blog/cns!11f54dd21fcd88ab!132.entry

将以下内容添加到页面的<head></head>标签内,即可实现showModalDialog的页面刷新和IE"后退"按钮无效功能。

<meta http-equiv="Pragma" content="no-cache">
<!-- Pragma content set to no-cache tells the browser not to cache the page
This may or may not work in IE -->

<meta http-equiv="expires" content="0">
<!-- Setting the page to expire at 0 means the page is immediately expired
...

阅读全文…
asp.net页中 showModalDialog("PopForm.aspx?v=卡号") , 接受中文参数v是乱码????????
p.s. 使用Server.UrlEncode 依旧乱码

解决方法:
一、使用UTF-8
<globalization requestEncoding="utf-8" responseEncoding="utf-8" />

二、js编码
window.showModalDialog("PopForm.aspx?value="+ escape(‘卡号’) +"",...)

Javascript 的三个编码方法
引用
escape() 方法:
采用ISO Latin字符集对指定的字符串进行编码。所有的空格符、标点符号、特殊字符以及其他非ASCII字符都将被转化成%xx格式的字符编码(xx等于该字符在字符集表里面的编码的16进
...

阅读全文…
1