테스트 사이트 - 개발 중인 베타 버전입니다

<input type="text" class="numeric"> 사용시 멈출경우

· 11년 전 · 5085
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]

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

게시글 목록

번호 제목
2537
2536
2532
2526
2524
2522
2519
2507
2506
2505
2499
2484
2475
2474
2468
2467
2465
2461
2456
2454
2453
2448
2445
2444
2441
2435
2433
2431
2430
2424