Javascript-форум (https://javascript.ru/forum/)
-   jQuery (https://javascript.ru/forum/jquery/)
-   -   Скрипт не проверяет форму (https://javascript.ru/forum/jquery/5020-skript-ne-proveryaet-formu.html)

rusticus 08.09.2009 19:14

Скрипт не проверяет форму
 
Использую Inline Form Validation Engine 1.3.9.5, jQuery plugin

Скрипт таков:
<script>
        $(document).ready(function() {
			$("#formID").validationEngine({
                                             inlineValidation: false,
				success : false,
				failure : function(){}
			});
		});
</script>


Форма:
<form id="formID" class="formular" method="post" action="">
			<fieldset>
				<legend>User informations</legend>
				<label>
					<span>Desired username (ajax validation, only karnius is available) : </span>
					<input value="karnius" class="validate[required,custom[noSpecialCaracters],length[0,20],ajax[ajaxUser]]" type="text" name="user" id="user" />
				</label>
				<label>
					<span>First name (ajax validation, only karnius is available): </span>
					<input value="karnius"  class="validate[custom[onlyLetter],length[0,100],ajax[ajaxName]] text-input" type="text" name="firstname" id="firstname" />
				</label>
				<label>
					<span>Last name : </span>
					<input value="karnius"  class="validate[custom[onlyLetter],length[0,100]] text-input" type="text" name="lastname" id="lastname" />
				</label>
				<legend>Email</legend>
				<label>
					<span>Email address : </span>
					<input value="ced@hotmail.com"  class="validate[required,custom[email]] text-input" type="text" name="email" id="email"  />
				</label>
<input class="submit" type="submit" value="Validate & Send the form!"/>
</fieldset>
</form>

Но страница лишь обновляеться и не дает результата. Пример работы скрипта можете посмотреть здесь http://www.position-absolute.com/art...ion-is-a-mess/.
Пишу на Dreamweaver CS4, тестирую на Денвере. Готовность страницы срабатывает, а функция проверки нет (((

ekkl 16.10.2009 00:58

Попробуй открыть в опере, выбери "Инструменты->дополнительно->консоль ошибок" Глянь что выводится...

Octane 16.10.2009 03:49

Цитата:

Сообщение от ekkl
Попробуй открыть в опере

Лучше в Firefox+Firebug ;)


Часовой пояс GMT +3, время: 12:11.