Article View: borland.public.cppbuilder.internet.web
Article #705Re: autoselect
From: anton
Date: Mon, 11 Sep 2006 19:51
Date: Mon, 11 Sep 2006 19:51
33 lines
2085 bytes
2085 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> schreef in bericht news:45059779@newsgroups.borland.com... > > "anton" <acvoosten@zeelandnet.nl> wrote in message > news:4503fd7b$1@newsgroups.borland.com... > >> Is there a way do realize this automatic? > > All of the controls on the page are accessible via the browser's DOM > interfaces. After a page has loaded (you have to wait for the > OnDocumentComplete event to be triggered), you can query the Document > property for the IHTMLDocument2 interface, and then use its "all" > collection > to drill down through its child elements. Once you find the select box > that > you want, you can query it for the IHTMLSelectElement interface, and then > use its selectedIndex property to select the desired item. > > Refer to MSDN for more information: > > Interfaces and scripting objects > > http://msdn.microsoft.com/workshop/browser/mshtml/reference/ifaces/interface.asp > > Also, please search through the newsgroup archives at http://www.deja.com. > Sample code for working with the DOM interfaces has been posted many times > before. > > > Gambit > >
Technical Details
Message-ID:
<4505be5f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4503fd7b$1@newsgroups.borland.com> <45059779@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,ebedf5b043eafc9a X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: "anton" <acvoosten@zeelandnet.nl> Newsgroups: borland.public.cppbuilder.internet.web References: <4503fd7b$1@newsgroups.borland.com> <45059779@newsgroups.borland.com> Subject: Re: autoselect Date: Mon, 11 Sep 2006 21:51:54 +0200 Lines: 35 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 86.87.46.231 Message-ID: <4505be5f@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1158004319 86.87.46.231 (11 Sep 2006 12:51:59 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail