[jQuery] Re: jQuery Validation Errors

2008-09-17 Thread GregWa

I figured out the problem.

In IE, if you have not set a class, even an empty class would suffice
(class=), it will throw that error. I never saw this in the
documentation, which I feel could use some work as is to be clearer.
As such, I am not sure whether this is a known problem or coding
problem.

On Sep 15, 5:53 pm, Jörn Zaefferer [EMAIL PROTECTED]
wrote:
 Please provide a testpage.

 Jörn

 On Mon, Sep 15, 2008 at 4:50 PM, GregWa [EMAIL PROTECTED] wrote:

  In FF3 I am having no issues with the plugin, but in IE (only tested
  7) I am running into the following problem.

 http://i34.tinypic.com/2vnovic.png- Line:662, Error: 'undefined' is
  null or not an object. The offending piece of code goes over to jQuery
  1.2.6 and this is where it errors.

  data: function( elem, name, data ) {
                 elem = elem == window ?
                         windowData :
                         elem;

                 var id = elem[ expando ];

  elem is what is undefined

  Here is the code I'm using to execute the validation:

             validator = $('#form1').validate();
             var input = $('ul.MDProgramsList :input').eq(0);
             input.each(function() { $(this).rules('add', { required:
  true }); });

             valid = validator.form();
             input.rules('remove');

  When I make elem = to windowData it then proceeds to another error.
  I'm not quite sure what is going on to cause this problem in IE.




[jQuery] Re: jQuery Validation Errors

2008-09-17 Thread Jörn Zaefferer
Well, the documentation is a wiki, you're welcome to help improving
it. If you aren't sure about a change you make, notify me or others
about the change by posting to the list.

If you think its a bug in the plugin, please create a ticket:
http://dev.jquery.com/newticket (requires registration)

Jörn

On Wed, Sep 17, 2008 at 4:16 PM, GregWa [EMAIL PROTECTED] wrote:

 I figured out the problem.

 In IE, if you have not set a class, even an empty class would suffice
 (class=), it will throw that error. I never saw this in the
 documentation, which I feel could use some work as is to be clearer.
 As such, I am not sure whether this is a known problem or coding
 problem.

 On Sep 15, 5:53 pm, Jörn Zaefferer [EMAIL PROTECTED]
 wrote:
 Please provide a testpage.

 Jörn

 On Mon, Sep 15, 2008 at 4:50 PM, GregWa [EMAIL PROTECTED] wrote:

  In FF3 I am having no issues with the plugin, but in IE (only tested
  7) I am running into the following problem.

 http://i34.tinypic.com/2vnovic.png- Line:662, Error: 'undefined' is
  null or not an object. The offending piece of code goes over to jQuery
  1.2.6 and this is where it errors.

  data: function( elem, name, data ) {
 elem = elem == window ?
 windowData :
 elem;

 var id = elem[ expando ];

  elem is what is undefined

  Here is the code I'm using to execute the validation:

 validator = $('#form1').validate();
 var input = $('ul.MDProgramsList :input').eq(0);
 input.each(function() { $(this).rules('add', { required:
  true }); });

 valid = validator.form();
 input.rules('remove');

  When I make elem = to windowData it then proceeds to another error.
  I'm not quite sure what is going on to cause this problem in IE.





[jQuery] Re: jQuery Validation Errors

2008-09-17 Thread GregWa

I apologize, I am incorrect. It has to do with trying to switch the
name attribute on radio buttons in IE. If you do so the plugin will
error. The reason I was trying to change the name attribute is due to
a problem in ASP.Net that will mangle the name when used in things
like repeaters/listviews.

On Sep 17, 10:16 am, GregWa [EMAIL PROTECTED] wrote:
 I figured out the problem.

 In IE, if you have not set a class, even an empty class would suffice
 (class=), it will throw that error. I never saw this in the
 documentation, which I feel could use some work as is to be clearer.
 As such, I am not sure whether this is a known problem or coding
 problem.

 On Sep 15, 5:53 pm, Jörn Zaefferer [EMAIL PROTECTED]
 wrote:

  Please provide a testpage.

  Jörn

  On Mon, Sep 15, 2008 at 4:50 PM, GregWa [EMAIL PROTECTED] wrote:

   In FF3 I am having no issues with the plugin, but in IE (only tested
   7) I am running into the following problem.

  http://i34.tinypic.com/2vnovic.png-Line:662, Error: 'undefined' is
   null or not an object. The offending piece of code goes over to jQuery
   1.2.6 and this is where it errors.

   data: function( elem, name, data ) {
                  elem = elem == window ?
                          windowData :
                          elem;

                  var id = elem[ expando ];

   elem is what is undefined

   Here is the code I'm using to execute the validation:

              validator = $('#form1').validate();
              var input = $('ul.MDProgramsList :input').eq(0);
              input.each(function() { $(this).rules('add', { required:
   true }); });

              valid = validator.form();
              input.rules('remove');

   When I make elem = to windowData it then proceeds to another error.
   I'm not quite sure what is going on to cause this problem in IE.