Hi,
I am trying to capture events performed in an
document. Following are the steps perfomed to achieve
this
1) Registered a listener class for "click" and
"change" event.
Code snippet for the above step
GetDOMWindow(activeWindow);
nsCOMPtr<nsIDOMEventTarget> eventTarget =
do_QueryInterface(activeWindow, &rv);
if(NS_SUCCEEDED(rv) && eventTarget)
{
eventTarget->AddEventListener(NS_LITERAL_STRING("change"),this,PR_FALSE);
eventTarget->AddEventListener(NS_LITERAL_STRING("click"),this,PR_FALSE);
}
2) In the implementation for
handleEvent(nsIDOMEvent), i am trying to get the
value entered in the textfield of a form, but i am
not able to achieve this. I was able to get all
properties of textfield ,except the value that is
currently entered in textfield. TextField properties
are obtained by calling GetAttributes of nsIDOMNode.
To be more precise , my need is to get
form1.textfield.value via XPCOM
Thanks in advance.
Regards
A.SathishKumar
__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom