HighDots Forums  

(Jquery Validate) Keep getting an error in IE8

jQuery jQuery is a fast, concise, JavaScript Library that simplifies how you traverse HTML documents, handle events, perform animations, and add Ajax interactions to your web pages. jQuery is designed to change the way that you write JavaScript.


Discuss (Jquery Validate) Keep getting an error in IE8 in the jQuery forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
chobo2
 
Posts: n/a

Default (Jquery Validate) Keep getting an error in IE8 - 11-07-2009 , 10:31 PM






Hi

I don't know what is going but my jquery validate plugin(1.5.5) is not
working and I am not sure for how long since I do most of my testing
on firefox.

The problem is this I go to one of my forms that jquery validate on it
and hit my "create" button my validation kicks in as it should and
does this right in all browsers including IE8. Now where it does not
work is when I do this.

I choose the first dropdown list and choose something. Then hit
"create" now all validation errors should show up expect the one for
the first dropdown box.

It does this in all browsers except in IE 8. I get this

Quote:
Webpage error details

User Agent: Mozilla/4.0 (compatible;
MSIE 8.0; Windows NT 6.1; Win64; x64;
Trident/4.0; .NET CLR 2.0.50727;
SLCC2; .NET CLR 3.5.30729; .NET CLR
3.0.30729; Media Center PC 6.0; Tablet PC 2.0) Timestamp: Sun, 8 Nov 2009
03:26:08 UTC


Message: Object required Line: 890
Char: 5 Code: 0 URI:
http://localhost:3668/Scripts/Plugins-Development/jquery.validate.js

This is what is on line 890

return options.length > 0 && ( element.type == "select-multiple"
Quote:
| ($.browser.msie && !(options[0].attributes['value'].specified) ?
options[0].text : options[0].value).length > 0);

This like the whole method block.

methods: {

// http://docs.jquery.com/Plugins/Validation/Methods/required
required: function(value, element, param) {
// check if dependency is met
if ( !this.depend(param, element) )
return "dependency-mismatch";
switch( element.nodeName.toLowerCase() ) {
case 'select':
var options = $("option:selected", element);
return options.length > 0 && ( element.type == "select-multiple"
Quote:
| ($.browser.msie && !(options[0].attributes['value'].specified) ?
options[0].text : options[0].value).length > 0);
case 'input':
if ( this.checkable(element) )
return this.getLength(value, element) > 0;
default:
return $.trim(value).length > 0;
}
},


Not sure what is going on.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.