🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.web
4 messages
4 total messages Started by anton Sun, 10 Sep 2006 11:56
autoselect
#703
Author: anton
Date: Sun, 10 Sep 2006 11:56
10 lines
1135 bytes
Using Cppwebbrowser and  the site http://www.maximaal.nl/sport.asp?id=75  I 
want to see several pages with soccer-results.

The only way I know, to get there is to click in the selectboxes manually.

Is there a way do realize this automatic?

Regards

Anton
Re: autoselect
#704
Author: 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
Re: autoselect
#705
Author: anton
Date: Mon, 11 Sep 2006 19:51
33 lines
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
>
> 
Re: autoselect
#706
Author: anton
Date: Mon, 11 Sep 2006 19:56
42 lines
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
>
> 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads