Bug Tracker

Modify

Ticket #3216 (closed bug: invalid)

Opened 5 years ago

Last modified 5 years ago

[validate] error with .rules("add") in Opera 9.51

Reported by: codinghorror Owned by: joern
Priority: major Milestone: 1.3
Component: plugin Version: 1.2.6
Keywords: Cc:
Blocking: Blocked by:

Description

We only get this error on Opera; works OK on IE7 / FF3 / Safari31 (windows versions)

message: Statement on line 104: Cannot convert undefined or null to Object

Backtrace:

Line 104 of linked script  http://localhost/content/js/jquery.validate.js

var staticRules = jQuery.data(element.form, 'validator').settings.rules;

Line 51 of inline#2 script in  http://localhost/test: In function initValidation

$("#post-text").rules("add", { required: true, minlength: 5 });

Line 58 of inline#2 script in  http://localhost/test

initValidation();

Change History

comment:1 Changed 5 years ago by codinghorror

we are using a textarea control -- not an input type="text"

comment:2 Changed 5 years ago by joern

  • Owner set to joern

Can you provide a simple testpage?

comment:3 Changed 5 years ago by flesler

  • Component changed from core to plugin

comment:4 Changed 5 years ago by joern

  • Status changed from new to closed
  • Resolution set to invalid

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.