Article View: borland.public.cppbuilder.internet.web
Article #706Re: autoselect
From: anton
Date: Mon, 11 Sep 2006 19:56
Date: Mon, 11 Sep 2006 19:56
42 lines
2222 bytes
2222 bytes
Thanks for your information. It's all new for me, but with the help of your answer I'll hope to realize the things I want. Regards, Anton "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:
<4505bf74$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!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:56:34 +0200 Lines: 44 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: <4505bf74$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1158004596 86.87.46.231 (11 Sep 2006 12:56:36 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail