Hi , Thanks a lot. I am to achieve it.
Regards A.SathishKumar Anton Bar <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > [EMAIL PROTECTED] wrote: > > Hi, > > > > I want to click and set text automatically on a button and textfield > > of a document respectively, from my C++ component. Help me to achieve > > this. Thanks in advance. > > > > Regards > > A.SathishKumar > > I'm not sure I understood correctly, but if you need to do this from an > embedding application than you can access the embedded document via DOM. > > SAMPLE (assume valid mWebBrowser interface pointer) > ------------------------------------------------------ > .... > nsCOMPtr<nsIDOMWindow> win; > mWebBrowser->GetContentDOMWindow(getter_AddRefs(win))); > > nsCOMPtr<nsIDOMDocument> doc; > win->GetDocument(getter_AddRefs(doc)); > > nsCOMPtr<nsIDOMElement> elem; > .... > ------------------------------------------------------- > > now you can get a pointer to the needed element into the 'elem' variable > from the 'doc' document by ID, by walking through the list of all > elements etc. > > Greetings from Israel, > Anton. _______________________________________________ mozilla-embedding mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-embedding
