🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Internet Programming

#1413
From: Eduardo Jauch
Date: Wed, 31 Jan 2007 13:37
72 lines
3628 bytes
Hans Galema escreveu:
> Eduardo Jauch wrote:
> 
>> <select name="mesDisponivel" class="combo-box" onChange="javascript: 
>> popularListaDiasDisponiveis();" >

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

   I was reading the help about CppWebBrowser. How can I find the 
select? Is using the "Document" property? I alread bookmarked the 
Microsoft section for Dynamic HTML page on web (the help says to take a 
look to it...)

   In any case, I'll take a look in other posts here to know how to use it.

>> /* 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();
> 
> 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.

   In fact, what I need is for exemple, read the content of the combo 
(select). If i find the right option (like a specific month), I need to 
execute the javascript... I don't know if is needed to "select" the 
month in combo, or if I can excute the java script function and pass 
direct to her the argument the it need to know what option I want...

   Anyway, How can I execute a javascript function?

> 
> 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.
> 

   I will try. :)
   I know nothing about java script, so it may take a while until I get 
a page that behave like that I will work.
   But I'll do my best ;)
   (great opportunity to learn something new)

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

   Yes. The page is a frame within other page.

   I look to one post Help with "TCppWebBrowser - Find and click a 
button" at the Web newsgroup and think that i get on eIdea of what 
you're talking...

Yet, all the code looks "alien" to me...
hauhuahuahuahua

I'll need to take a seat and a good look on the help, examples and other 
  posts here to make me confortable and begin with some easy tests, like 
READ and SHOW the page with TCPPWebBrowser for now ;)

Thanks :)
Technical Details
Message-ID: <45c09b51@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news1.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <45aebe50$1@newsgroups.borland.com> <45af4ec2$1@newsgroups.borland.com> <45be1998@newsgroups.borland.com> <45c0809d$1@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 11:37:12 -0200
From: Eduardo Jauch <eduardo.jauch@gmail.com>
User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)
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> <45c0809d$1@newsgroups.borland.com>
In-Reply-To: <45c0809d$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 201.40.94.175
Message-ID: <45c09b51@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1170250577 201.40.94.175 (31 Jan 2007 05:36:17 -0800)
Lines: 72
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news1.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail