Логин:

Пароль:

Форумы
Общие вопросы
Document Object Model
Обсуждаем конференцию
Web Usability (test)

Общие вопросы

Зацикливания функции

Здравствуйте, столкнулся с проблеммай
Есть функция, которая должна срабатывать бесконечно
Скрипит приважу ниже вопрос как зациклить функцию чтоб она не останавливалась


function Length_TextField_Validator(newbeneacc)
{
// Check the length of the value of the element named text_name
// from the form named form_name if it's < 3 and > 10 characters
// display a message asking for different input
if ((newbeneacc.ctlAccountNumber.value.length < 3) || (newbeneacc.ctlAccountNumber.value.length > 7))
{
alert("hhh");
// Place the cursor on the field for revision
newbeneacc.ctlAccountNumber.focus();
// return false to stop further processing
return (false);
}
// If text_name is not null continue processing
return (true);
}
setTimeout("Length_TextField_Validator()",1000);
СообщениеАвторДата
deng23.03.2005 13:05
Pipa25.03.2005 16:04
deng27.03.2005 07:44