FCKEditor: The server didn’t send back a proper XML response解决方法

The server didn’t send back a proper XML response. Please contact your system administrator.

XML request error: OK (200)

所有配置均正确,而会有上面这样的错误。是因为不支持浏览中文文件名导致,解决方法: Read the rest of this entry »

CSS实现表格单元格强制换行和强制不换行

引用

用CSS实现表格单元格数据自动换行或不换行

1、自动换行:
<style type=”text/css”>
.AutoNewline
{
  word-break: break-all;/*必须*/
}
</style>

<table>
<tr>
  <td class=”AutoNewline”>自动换行自动换行自动换行自动换行自动换行自动换行自动换行自动换行自动换行自动换行自动换行自动换行自动换行自动换行自动换行自动换行自动换行自动换行自动换行自动换行自动换行自动换行自动换行自动换行</td>
</tr>
</table>

2、不换行:
<style type=”text/css”>
.NoNewline
{
word-break: keep-all;/*必须*/
}
</style>

<table>
<tr>
  <td class=”NoNewline”>不换行不换行不换行不换行不换行不换行不换行不换行不换行不换行</td>
</tr>
</table>

Tags:
| Posted in 网站制作 | No Comments »

js限制用户输入为数字、字母、中文

利用正则表达式限制网页表单里的文本框输入内容:

用正则表达式限制只能输入中文:onkeyup=”value=value.replace(/[^\u4E00-\u9FA5]/g,”)” onbeforepaste=”clipboardData.setData(‘text’,clipboardData.getData(‘text’).replace(/[^\u4E00-\u9FA5]/g,”))”

用正则表达式限制只能输入全角字符: onkeyup=”value=value.replace(/[^\uFF00-\uFFFF]/g,”)” onbeforepaste=”clipboardData.setData(‘text’,clipboardData.getData(‘text’).replace(/[^\uFF00-\uFFFF]/g,”))”

用正则表达式限制只能输入数字:onkeyup=”value=value.replace(/[^\d]/g,”) “onbeforepaste=”clipboardData.setData(‘text’,clipboardData.getData(‘text’).replace(/[^\d]/g,”))”

用正则表达式限制只能输入数字和英文:onkeyup=”value=value.replace(/[\W]/g,”) “onbeforepaste=”clipboardData.setData(‘text’,clipboardData.getData(‘text’).replace(/[^\d]/g,”))”
--不知道什么高人写的,真不错

Html+Asp+Php+Jsp禁止浏览器缓存的方法

HTTP:
<META HTTP-EQUIV=”pragma” CONTENT=”no-cache”>
<META HTTP-EQUIV=”Cache-Control” CONTENT=”no-cache, must-revalidate”>
<META HTTP-EQUIV=”expires” CONTENT=”Wed, 26 Feb 1997 08:21:57 GMT”>
<META HTTP-EQUIV=”expires” CONTENT=”0″>

ASP
response.expires=0
response.addHeader(“pragma”,”no-cache”)
response.addHeader(“Cache-Control”,”no-cache, must-revalidate”)

PHP
header(“Expires: Mon, 26 Jul 1997 05:00:00 GMT”);
header(“Cache-Control: no-cache, must-revalidate”);
header(“Pragma: no-cache”);

JSP:
response.addHeader(“Cache-Control”, “no-cache”);
response.addHeader(“Expires”, “Thu, 01 Jan 1970 00:00:01 GMT”);

cookie的作用域问题(php)

php 中设置cookie 的代码:setcookie()
注意cookie的作用域:
setcookie(“cookie名”,”值”,”作用域”)
作用域“/”表示COOKIE作用在根目录下所有文件
作用域“/ROOT/”表示COOKIE作用在根目录下ROOT目录下的所有文件
还有cookie不能跨域~~
具体有空再研究一下

Tags: ,
| Posted in 网站制作 | No Comments »

FCKEditor 2.x在php环境下的配置

来源:未知

下载地址:

http://www.fckeditor.net/download

效果演示:

http://www.fckeditor.net/demo

Read the rest of this entry »