🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #1412

Re: Internet Programming

#1412
From: Hans Galema
Date: Wed, 31 Jan 2007 11:40
44 lines
2590 bytes
Eduardo Jauch wrote:

> <select name="mesDisponivel" class="combo-box" onChange="javascript: 
> popularListaDiasDisponiveis();" >
>   <option value="">Selecione</option>
>     <option value="04/2007" selected >
>        Abril 2007
>     </option>
> </select>

So that is html code and exactly an answer on my first question if it was
<select> ... </select>

You see it has a name atribute "mesDisponivel". You can use the name
to find the select and then query its <option> ... </option>'s.

> /* THREE BUTTONS */
> 
> <a href="javascript: confirmarAgendamento();"><img 
> src="/agendamento-web/images/pt_BR/bt_confirmar.gif" border="0"></a>&nbsp;

That construction 'behaves' like a button. In fact is is an image as
you can see. Where the link is actually javascript, executed
when the user clicks the image, that calls the function
confirmarAgendamento();

> So, the server return this page when I click a button in another.
> I need to "read" the values in the combos and eventually "click" in one 
> of the buttons...

Only readout the <option>'s or choose one an select it (set it selected)?

Readout and select them is doable with TCppWebBrowser.

Clicking such a 'button' well at the moment I do not know.

I still ask you to produce an url where we can try it out.
You could make such a page yourself to begin with and place
it on the internet.

If the page is part of a frame then things are more complicated
as then you have to make used functions recursive.

Hans.
Technical Details
Message-ID: <45c0809d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.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: <45aebe50$1@newsgroups.borland.com> <45af4ec2$1@newsgroups.borland.com> <45be1998@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,3ab6f775c9cbc937
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 31 Jan 2007 12:40:25 +0100
From: Hans Galema <notused@notused.nl>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: Internet Programming
References: <45aebe50$1@newsgroups.borland.com> <45af4ec2$1@newsgroups.borland.com> <45be1998@newsgroups.borland.com>
In-Reply-To: <45be1998@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 145.98.201.248
Message-ID: <45c0809d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1170243741 145.98.201.248 (31 Jan 2007 03:42:21 -0800)
Lines: 44
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.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