Skip to main content

Bug Tracker

Side navigation

#4745 closed bug (invalid)

Opened June 10, 2009 10:05PM UTC

Closed October 13, 2009 12:16AM UTC

Last modified March 15, 2012 06:50PM UTC

[validate] validator breaks in IE8 with dropdowns

Reported by: BalusC Owned by:
Priority: major Milestone: 1.4
Component: plugin Version: 1.3.2
Keywords: validator IE8 dropdown Cc:
Blocked by: Blocking:
Description

Versions used:

jquery.validator.js 1.5.2 (full, not min nor pack)

jquery.js 1.3.2

IE 8.0.6001.18702

Code: see attachment.

Problem: jquery.validator.js breaks with following error:

Line: 875

Char: 5

Error: Object required

Code: 0

Attachments (1)
  • test.html (1.3 KB) - added by BalusC June 10, 2009 10:06PM UTC.

    test file for jquery validator bug in IE8

Change History (6)

Changed June 10, 2009 10:14PM UTC by BalusC comment:1

Excuse, the file is called jquery.validate.js, but that should have been obvious enough.

This problem doesn't occur in IE6 and IE7 by the way, as in any alternative browser I have here (FF, Opera, Safari, Chrome).

Changed June 10, 2009 10:18PM UTC by BalusC comment:2

FYI: it works when I change the following part in line 875

$.browser.msie

by

$.browser.msie && $.browser.version < 8

If I recall correctly, some jQuery guy ever said that browser detection is a big no-no in jQuery. So I would rewrite the lines where browser detection is involved.

Changed August 04, 2009 10:05AM UTC by hasantayyar comment:3

This because of "no value attribute".

Put "value" attribute to all "<option>".

Changed October 13, 2009 12:16AM UTC by dmethvin comment:4

resolution: → invalid
status: newclosed

Changed January 17, 2011 01:02PM UTC by zlati.pehlivanov@gmail.com comment:5

Replying to [comment:3 hasantayyar]:

This because of "no value attribute". Put "value" attribute to all "<option>".

no it's not

I'm getting an "Stop running this script" error in ie8 and 7 not always but 90% of the time. there is some serious bug here guys please fix it

the form is 100% correct, i even remove the select and the remote and the additional validator rules, BUT no, it's givving me this error wich breaks all my logic and submit's the form normaly not by ajax

$(".initialRegister").validate({
		// TO DO implement recaptca validation and add to hidden field that is validated - the server will now not to check it again
		rules: {
			
			user_password: {
				required: true,
				minlength: 8
			},
			user_password2: {
				required: true,
				minlength: 8
				
			},
			user_email: {
				required: true,
				email: true
			},
			
			user_fname: {
				
				minlength: 2
			},
			user_lname: {
				
				minlength: 2
			},
			user_bname: {
				
				minlength: 2
			},
			user_pc: {
				postalcode: true
			}
			
			
			
		},
		messages:{
			
			user_email: {
				required: "Please enter your valid email",
				email: "Entred email is not valid."
			},
			
			user_fname: {
				
				minlength: "Your First name is too short"
			},
			user_lname: {
				
				minlength: "Your Last name is too short"
			},
			user_bname: {
				
				minlength: "Your business name is too short"
			},
			user_pc: {
				postalcode: "Contains unsupported characters"
			}
			
			
		},
		submitHandler: function(form){
			
		
			var ajaxoptions = { 

			    beforeSubmit:  showRequest,  // pre-submit callback
			    success:       showResponse,  // post-submit callback
				dataType: 'json'	
			};
			$(form).ajaxSubmit(ajaxoptions);
		},
		success:function(label) {
	
			
		},
		onsubmit: true,
		onfocusout:false,
		onkeyup:false,
		onclick:false,
		focusInvalid:false,
		
		errorClass: "invalid",
		errorElement: "em",
		errorPlacement: function(error, element){
	
			var label = $("label[for='" + element.attr('name') + "']");
			
			$(label).append(error);
		},
		debug: false
	});

Changed January 17, 2011 01:34PM UTC by jitter comment:6

There is a reason why this ticket was closed as invalid.

The big red box on the "New Ticket" page rather clearly states:

>For all other jQuery plugins:

This is NOT the correct form! Please use the Plugins site to report your bug to its author.

This tracker you submitted your bug on is for jQuery core bugs only. So bug reports for plugins should be filed on the plugin site or directly to the respective authors of those plugins. You can also try posting to the correct subforum in the jQuery Forum and maybe get support from other users of the plugin.