I was trying something in Prototype (i'm brand new to it) and mucked
up this:
document.observe('dom:loaded', function() {
new Form.Observer('frmLogin', 0.3, function() {
if($F('txtEmail') != '' && $F('txtPassword') != '') {
$('submLogin').enable();
} else {
$('submLogin').disable();
}
});
});
now when trying it out live: i got following error in Firebug:
[Exception... "'Geen toestemming om eigenschap
XULElement.selectedIndex te wijzigen' when calling method:
[nsIAutoCompletePopup::selectedIndex]" nsresult: "0x8057001e
(NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame ::
http://localhost/libs/js/prototype.js :: anonymous :: line 3517" data:
no]
It's dutch but translates as Exception... "No permission to edit
property XULElement...... when calling method: "
Form.EventObserver works great, but it's a login field, so I'd want to
be able to press enter from the password field, instead of first
blurring the password field...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---