Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
validate-one-required fails in IE8
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
TheIvIaxx  
View profile  
 More options Jul 2 2009, 8:58 pm
From: TheIvIaxx <theivi...@gmail.com>
Date: Thu, 2 Jul 2009 17:58:55 -0700 (PDT)
Local: Thurs, Jul 2 2009 8:58 pm
Subject: validate-one-required fails in IE8
In IE8 the validate-one-required throws an error.  Saying that the
given element(DIV) doesnt have a method called getElements().  in FF
and chrome, it works fine.  Not sure how the div element isnt getting
this method.

This does not work:

<form id='form'>
    <div>
        <input type="checkbox" />
        <input id="one" type="checkbox" class="validate-one-required" /


    </div>
    <input type='button' value='x' />
</form>

This does work:

<form id='form'>
    <input type="checkbox" />
    <input id="one" type="checkbox" class="validate-one-required" />
    <input type='button' value='x' />
</form>

So wrapping the checkboxes in a div fails, but thats one of the key
things about validate-one-required :)

Am i missing something with this?

Thanks


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
nutron  
View profile  
 More options Jul 2 2009, 9:18 pm
From: nutron <anut...@gmail.com>
Date: Thu, 2 Jul 2009 18:18:27 -0700 (PDT)
Local: Thurs, Jul 2 2009 9:18 pm
Subject: Re: [Moo] validate-one-required fails in IE8

I've got this fixed (the code was using element.parentNode for some reason,
instead of element.getParent()). It'll be in the next release, in the mean
time, you can fix it by just adding this to your code (to redefine the
validator):
FormValidator.add('validate-one-required', {
errorMsg: FormValidator.getMsg.pass('oneRequired'),
test: function(element, props){
 var p = document.id(props['validate-one-required']) || element.getParent();
return p.getElements('input').some(function(el){
 if (['checkbox', 'radio'].contains(el.get('type'))) return
el.get('checked');
return el.get('value');
 });

}
});

On Thu, Jul 2, 2009 at 5:59 PM, TheIvIaxx (via Nabble) <
ml-user+199977-392105...@n2.nabble.com<ml-user%2B199977-392105...@n2.nabble.com>

-----
The MooTools Tutorial:  http://www.mootorial.com www.mootorial.com
Clientcide:  http://www.clientcide.com www.clientcide.com
--
View this message in context: http://n2.nabble.com/-Moo--validate-one-required-fails-in-IE8-tp31988...
Sent from the MooTools Users mailing list archive at Nabble.com.

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
theiviaxx  
View profile  
 More options Jul 3 2009, 12:29 am
From: theiviaxx <theivi...@gmail.com>
Date: Thu, 2 Jul 2009 21:29:53 -0700 (PDT)
Local: Fri, Jul 3 2009 12:29 am
Subject: Re: validate-one-required fails in IE8
thank you sir, love this framework :)

On Jul 2, 6:18 pm, nutron <anut...@gmail.com> wrote:


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google