I see two issues here: For one, you've nested two forms, which isn't
really that well supported by browsers, and the validation plugin is
unable to handle that - events are bubbled up to the parent form,
which can't handle the event. I'm not sure if and how that should be
handled.

The other issue is that the ignore option is applied only to the
submit event validation. Validation on key or blur events doesn't
respect the ignore option. Could you file a ticket for this?
http://dev.jquery.com/newticket (requires registration)

As a workaround: I've implemented a background-fileupload by putting
the input into the main form while selecting a file, but appending it
to a hidden form beneath the main one to submit it. That worked quite
well.

Jörn

On Fri, Oct 17, 2008 at 3:26 AM, Jeff Strahl <[EMAIL PROTECTED]> wrote:
>
> Here is a simple mock up of the elements in question.  The error persists 
> when you click the 'button' to upload an image.
>
> http://prolabor.com/testform/
>
> Thanks for your help with this matter.
>
> -jeff
>
> -----Original Message-----
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff 
> Strahl
> Sent: Thursday, October 16, 2008 5:18 PM
> To: jquery-en@googlegroups.com
> Subject: [jQuery] Re: [validate] ignore an iframe element
>
>
> Due to the sensitivity of the application, I will put something similar 
> together tonight that best reproduces the scenario.
>
> Thanks,
> -jeff
>
> -----Original Message-----
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jörn 
> Zaefferer
> Sent: Thursday, October 16, 2008 5:10 PM
> To: jquery-en@googlegroups.com
> Subject: [jQuery] Re: [validate] ignore an iframe element
>
> Could you provide a testpage?
>
> Jörn
>
> On Thu, Oct 16, 2008 at 7:44 PM, -Jeff- <[EMAIL PROTECTED]> wrote:
>>
>>
>> I am using the Validation plugin, which is working well overall.  Is there a
>> way to have it ignore an entire iframe?  I have added the { ignore:
>> ".ignore", ... } parameter to the configuration and applied the ignore class
>> to every element possible in regards to that respective <div> and all
>> elements within the iframe's contents, however when the element within the
>> iframe is selected, I get the following error:
>>
>> validator is undefined
>> http://somedomain.com/js/jquery.validate.js
>> Line 287
>>
>> Which is:
>> function delegate(event) {
>>  var validator = $.data(this[0].form, "validator");
>>  validator.settings["on" + event.type] && validator.settings["on" +
>> event.type].call(validator, this[0] );
>> }
>>
>> Is there any way to have the Validate plugin not check anything in this div,
>> iframe, or form?
>>
>> Thanks in advance for any assistance,
>> -jeff
>> --
>> View this message in context: 
>> http://www.nabble.com/-validate--ignore-an-iframe-element-tp20015960s27240p20015960.html
>> Sent from the jQuery General Discussion mailing list archive at Nabble.com.
>>
>>
>
>

Reply via email to