🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Extracting all the HTMLElements from IHTMLDocument2 ?

#152
From: Remy Lebeau (TeamB)
Date: Wed, 15 Aug 2007 06:12
24 lines
1923 bytes
"Mischa Simmonds" <mischa1.BanSpam@informationdesign.BanSpam.com.au> wrote
in message news:46c24d7e$1@newsgroups.borland.com...

> I notice though that  'all' collection is not returning
> all the name/value pairs in the form though.

Yes, it does.  That is the whole purpose of that collection - it contains
all of the elements that are on the page.

> The following is one example of that is not being returned...

It is not supposed to.  OPTION tags are not standalone elements.  They are
children of the SELECT element.  You have to query the SELECT element for
its IHTMLSelectElement interface in order to access its options.

I strongly suggest you read Microsoft's documentation about what interfaces
are actually available and what functionality they expose:

    Interfaces and Scripting Objects
    http://msdn2.microsoft.com/en-us/library/aa741322.aspx


Gambit
Technical Details
Message-ID: <46c29942@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <46c061ea$1@newsgroups.borland.com> <46c09536@newsgroups.borland.com> <46c24d7e$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,26c174002c4041d7
X-Google-Attributes: gidfeeec,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.web
References: <46c061ea$1@newsgroups.borland.com> <46c09536@newsgroups.borland.com> <46c24d7e$1@newsgroups.borland.com>
Subject: Re: Extracting all the HTMLElements from IHTMLDocument2 ?
Date: Tue, 14 Aug 2007 23:12:00 -0700
Lines: 26
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: 75.83.29.61
Message-ID: <46c29942@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1187158338 75.83.29.61 (14 Aug 2007 23:12:18 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
X-Original-Bytes: 1781