<input type="text" class="numeric"> 사용시 멈출경우
http://sir.co.kr/bbs/board.php?bo_table=g5_bug&wr_id=2502
http://sir.co.kr/bbs/board.php?bo_table=g5_bug&wr_id=2382&sca=&sfl=wr_subject%7C%7Cwr_content&stx=numeric
에서 언급 했듯이 그누 기본이 아닌 추가 시스템에서 간혹 numeric들어간 부분때문에 페이지가 다운 되는 현상이 지속적으로 발생 하더군요.
그래서 저는
./js/wrest.js 약 145줄부터 시작하는 함수를 다음과 같이 변경 하여 사용중입니다.
[code]
// 숫자인지검사
// 배부른꿀꿀이님 추가 (http://dasir.com) 2003-06-24
function wrestNumeric(fld)
{
if (!wrestTrim(fld)) return;
if(isNaN(fld.value) == true) {
wrestMsg = wrestItemname(fld) + " : 숫자가 아닙니다.\n";
wrestFld = fld;
}
/*
if (fld.value.length > 0) {
for (i = 0; i < fld.value.length; i++) {
if (fld.value.charAt(i) < 0 || fld.value.charAt(i) > 9) {
wrestMsg = wrestItemname(fld) + " : 숫자가 아닙니다.\n";
wrestFld = fld;
}
}
}
*/
}
[/code]
http://sir.co.kr/bbs/board.php?bo_table=g5_bug&wr_id=2382&sca=&sfl=wr_subject%7C%7Cwr_content&stx=numeric
에서 언급 했듯이 그누 기본이 아닌 추가 시스템에서 간혹 numeric들어간 부분때문에 페이지가 다운 되는 현상이 지속적으로 발생 하더군요.
그래서 저는
./js/wrest.js 약 145줄부터 시작하는 함수를 다음과 같이 변경 하여 사용중입니다.
[code]
// 숫자인지검사
// 배부른꿀꿀이님 추가 (http://dasir.com) 2003-06-24
function wrestNumeric(fld)
{
if (!wrestTrim(fld)) return;
if(isNaN(fld.value) == true) {
wrestMsg = wrestItemname(fld) + " : 숫자가 아닙니다.\n";
wrestFld = fld;
}
/*
if (fld.value.length > 0) {
for (i = 0; i < fld.value.length; i++) {
if (fld.value.charAt(i) < 0 || fld.value.charAt(i) > 9) {
wrestMsg = wrestItemname(fld) + " : 숫자가 아닙니다.\n";
wrestFld = fld;
}
}
}
*/
}
[/code]
게시글 목록
| 번호 | 제목 |
|---|---|
| 1583 | |
| 1580 | |
| 1579 | |
| 1566 | |
| 1555 | |
| 1533 | |
| 1523 | |
| 1489 | |
| 1486 | |
| 1471 | |
| 1467 | |
| 1449 | |
| 1444 | |
| 1443 | |
| 1441 | |
| 1431 | |
| 1426 | |
| 1425 | |
| 1420 | |
| 1418 | |
| 1412 | |
| 1405 | |
| 1401 | |
| 1398 | |
| 1392 | |
| 1383 | |
| 1375 | |
| 1372 | |
| 1371 | |
| 1370 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기