Hi,

Just tested it!

I need the 'focusout' event. But Event.observe does not seem to  
recognize this?

Deco




On Nov 12, 2006, at 8:35 AM, Deco Rior wrote:

>
> Well, I thought I had too!
>
> But I think the problem is this. When You select from the keyboard it
> is no problem.
>
> However, when you click on the dropdown, it will detect this as an
> onBlur/onChange event
>
> So the validation occurs before the values are looked up resulting in
> a failed response.
>
> soo close!
>
> Deco
>
> P.S. I did not try your approach so might be wrong. The trick is to
> change the value click outside the input box update the value and
> then trigger the validation
>
> On Nov 12, 2006, at 7:23 AM, Christophe Porteneuve wrote:
>
>>
>> Hey Deco,
>>
>> I read your "I figured it out!" post, but here:
>>
>> - use afterUpdateElement to adjust a boolean (either global or
>> associated as a custom property to the DOM object for the field)
>> - react to onBlur to check for this boolean being true
>>
>> How's that?
>>
>> -- 
>> Christophe Porteneuve a.k.a. TDD
>> "[They] did not know it was impossible, so they did it." --Mark Twain
>> Email: [EMAIL PROTECTED]
>>
>>>
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to