Hi,
in a site my GM script works, I want to do a
document.getElementsByTagName('input') to get all defined input fields.
.length shows 46 (what is true). But when I try to access one of the
found elements, I only get
Error: Component returned failure code: 0x80004005
(NS_ERROR_FAILURE) [nsIDOMHTMLInputElement.selectionStart]
E.g. by trying
var node = document.getElementsByTagName('input');
for( var param in node ) {
GM_log( param + ': ' + node[param] );
}
I have no idea what I am doing wrong. This way it works with all other
tags I ever tried but not with 'input'.
The input-tags also have ids. But trying to get it by getElementById()
results in the same problem.
Can anyone please help me accessing INPUT-tags? (Currently I only can
parse innerHTML that contains an <INPUT ...> and parse it as string...)
Tnx in advance.
Enkidu
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" 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/greasemonkey-users?hl=en.