Bug on Form.Observer

bram.vandersype-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Thu, 03 Jan 2008 00:39:29 -0000

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...