文章列表
js 代码
function ValidatorUpdateIsValid() {
var i;
var item;
for (i = 0; i < Page_Validators.length; i++) {
if (!Page_Validators[i].isvalid) {
item = document.getElementById(Page_Validators[i].controltovalidate);
...
- 2007-10-12 13:29
- 浏览 1030
- 评论(0)
js 代码
/// detect a special case of "web browser"
Calendar.is_ie = ( /msie/i.test(navigator.userAgent) &&
!/opera/i.test(navigator.userAgent) );
Calendar.is_ie5 = ( Calendar.is_ie && /msie 5\.0/i.test(navigator.userAgent) );
...
- 2007-10-08 10:47
- 浏览 1118
- 评论(0)
JAVASCRIPT:
/* This is much faster than using (el.innerHTML = str) when there are many
existing descendants, because in some browsers, innerHTML spends much longer
removing existing elements than it does creating new ones. */
funct ...
- 2007-09-17 09:12
- 浏览 1147
- 评论(0)
from http://www.netfxharmonics.com/2007/09/Creating-JavaScript-objects-from-ASPNET-objects.aspx
If you have worked with ASP.NET for any length of time you probably know that the ASP.NET ID you set on a control on the server-side changes when it gets to the client side. For example, if you have a te ...
- 2007-09-17 09:08
- 浏览 1407
- 评论(0)
有这样一个需求,一个Policy下有不定数量的Item组成,要让用户自由地增加Item的数量,用js实现。兼容ie, ff。
todo: 现在实现了固定输入框的效果,还没有做到可配置。
code is attached.
作为一个开发人员,真的从心底里羡慕国外rails community的那种氛围,人与人之间非常approachable, Expert可以用很长的时间去指导一个newbie,没有等级的概念,不会因为自己是expert而抬高姿态,对一些初级的问题不屑一顾。人们都很nice,多么希望在中国,也能有这样的一种氛围,大家为一个共同的爱好在一起讨论。
今天看到一个很不错的关于ror的screencast站点: http://www.coderpath.com 目前有3个casts,平均一个多小时一个,看了一半,觉得很不错。如果你有兴趣的话,不妨也下载看一下:) 我觉得看这些screencast,其中他们 ...