🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #704

Re: autoselect

#704
From: Remy Lebeau (TeamB)
Date: Mon, 11 Sep 2006 17:03
26 lines
1862 bytes
"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: <45059779@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.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
References: <4503fd7b$1@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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.web
References: <4503fd7b$1@newsgroups.borland.com>
Subject: Re: autoselect
Date: Mon, 11 Sep 2006 10:03:30 -0700
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 70.40.40.167
Message-ID: <45059779@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1157994361 70.40.40.167 (11 Sep 2006 10:06:01 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.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