Hi all,
I am trying to get name/value of the button clicked in
confirm window.
In this regard , i am able to get nsIDOMNodeList, but
its length is zero. Below is the code, i used to
retrieve . Please help me to achieve this.
nsCOMPtr<nsIDOMXULDocument>xuldoc=do_QueryInterface(domdoc,&rv);
nsCOMPtr<nsIDOMNodeList>nodelist;
rv=xuldoc->GetElementsByAttribute(NS_LITERAL_STRING("label"),NS_LITERAL_STRING("OK"),getter_AddRefs(nodelist));
if(NS_SUCCEEDED(rv) && nodelist)
{
PRUint32 length;
nodelist->GetLength(&length);
cout<<"the length is "<<length<<endl;
}
else
{
cout<<"nodelist is null"<<endl;
}
Thanks and Regards
A.SathishKumar
__________________________________
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
http://promo.yahoo.com/sbc/
_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding