Article View: borland.public.cppbuilder.internet.socket
Article #1455Re: Internet Programming
From: Eduardo Jauch
Date: Tue, 23 Jan 2007 19:59
Date: Tue, 23 Jan 2007 19:59
129 lines
4872 bytes
4872 bytes
Hello.
I can't pass to you the password to the site, Id like but can't.
Without the password, you can't see the page I must work on...
How you can see, the major part does nothing but show pictures.
But a few java code is what do all the work. In fact, all the
"different" pages that i acess (with different buttons, etc) have all
the same code...
What I need to know is if a program write in c++ can Understand what is
write in this html code, execute these javascripts (like the internet
explorer e mozzila), and get the result.
I know nothing about Java, so I don't know if is possible "understand"
what the site will send to the program or it must execute other
application that will "draw" the page.
I need to get the information that the page send, work with this data
and simulate a user clicking a button, selecting a value in a combo box,
etc.
Is this possible if the site executes Java?
Where (what books, sites) can I find to teach me how to program such
application?
Here is the code of the page (I deleted the parts that show images only):
<script type="text/javascript"
src="/agendamento-web/scripts/JavaScriptFlashGateway.js"></script>
<script>
var uid = new Date().getTime();
var flashProxy = new FlashProxy(uid,
'/agendamento-web/swf/JavaScriptFlashGateway.swf');
function loadFlashMenu(arg) {
flashProxy.call('loadMenu', arg);
}
function RedimFrame(altura) {
document.getElementById("iContent").height=altura;
}
function PreparePage(altura, _xml) {
RedimFrame(altura);
}
</script>
<script>
function changeLocale(l){
var frm = frames['iContent'].document.forms[0];
frm.locale.value = l;
frm.submit();
if(l=='pt_BR'){
document.title = 'Servi�o de Informa��o para Visto Online';
document.getElementById('imagemRodape').src =
'/agendamento-web/images/pt_BR/rodape_01.gif';
document.getElementById('imagemCabecalho_pt_BR').style.display = '';
document.getElementById('imagemCabecalho_en_US').style.display = 'none';
} else {
document.title = 'Visa Information Service On-Line';
document.getElementById('imagemRodape').src =
'/agendamento-web/images/en_US/rodape_01.gif';
document.getElementById('imagemCabecalho_pt_BR').style.display = 'none';
document.getElementById('imagemCabecalho_en_US').style.display = '';
}
}
</script>
<script src="http://www.google-analytics.com/urchin.js"
type="text/javascript"> </script>
<script type="text/javascript">
_uacct = "UA-368745-1";
urchinTracker();
</script>
<tr>
<td width="193" align="center" valign="top" class="td_bege">
<script type="text/javascript">
var tag = new
FlashTag('/agendamento-web/swf/raVistoOnline_Menu_EN_v1.7.0.swf?paramXMLSource=/agendamento-web/jsp/common/menu-xml.jsp?timestamp=1169581041854',
170, 550);
tag.setFlashvars('lcId='+uid);
tag.write(document);
</script>
</td>
<script>
if('pt_BR' == 'pt_BR' || 'pt_BR' == ''){
document.getElementById('imagemCabecalho_pt_BR').style.display = '';
document.getElementById('imagemCabecalho_en_US').style.display = 'none';
document.getElementById('imagemRodape').src =
'/agendamento-web/images/pt_BR/rodape_01.gif';
} else {
document.getElementById('imagemRodape').src =
'/agendamento-web/images/en_US/rodape_01.gif';
document.getElementById('imagemCabecalho_pt_BR').style.display = 'none';
document.getElementById('imagemCabecalho_en_US').style.display = '';
}
</script>
</body>
</html>
Hans Galema escreveu:
> Eduardo Jauch wrote:
>
>> I take a look at the code of the page today...
>> Looks like the work is all by javascript...
>>
>> There some way of work with this?
>
> Yes. T(Cpp)WebBrowser can handle every html page.
>
> But please be more exact if you want help.
>
> Please provide the url.
>
> Hans.
Technical Details
Message-ID:
<45b668e6@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<45aebe50$1@newsgroups.borland.com> <45af4ec2$1@newsgroups.borland.com> <45b53ebf$1@newsgroups.borland.com> <45b5e113@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,3ab6f775c9cbc937 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII Date: Tue, 23 Jan 2007 17:59:14 -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> <45b53ebf$1@newsgroups.borland.com> <45b5e113@newsgroups.borland.com> In-Reply-To: <45b5e113@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 200.181.174.36 Message-ID: <45b668e6@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1169582310 200.181.174.36 (23 Jan 2007 11:58:30 -0800) Lines: 129 Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail