Hi all,

I am working on to get the text entered in the Prompt TextBox.

I obtained nsIDOMNode from nsIDOMEventTarget.

>From this i am trying to get the nsIDOMXULTextboxElement through nsIBindingManager.

The code Snippet is below

nsCOMPtr<nsIDOMDocument> domDoc;
node->GetOwnerDocument(getter_AddRefs(domDoc));
nsCOMPtr<nsIDocument> mDocument(do_QueryInterface(domDoc));   
nsCOMPtr<nsIBindingManager> bindingManager;
bindingManager = mDocument->GetBindingManager();
 if (bindingManager)
{
    nsCOMPtr<nsIDOMNodeList> anonymousChildren;

    bindingManager->GetAnonymousNodesFor(NS_STATIC_CAST(nsIContent*, NS_CONST_CAST(nsGenericContainerElement*,     this)),getter_AddRefs(anonymousChildren));
}

In this i am not able to compile this code snippet, because i don't know how to get the nsIContent from the nsIDOMNode.

Kindly help me to sort out the problem.

Thanks and Regards
S.Srinivasa Raghavan
--
WhoAmI S.Srinivasa Raghavan
AdventNet Development Center
11, Sarathy Nagar,
Vijaya Nagar, Velacherry,

Chennai - 600 042.
Ph : 22431115 , 22431215 Extn : 5417


"Our greatest glory was not in never falling, but in rising when we  fell"- Vince Lombardi


Reply via email to