Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

delphi embbebed Web Browser Help

Posted on 2010-08-27
Last Modified: 2013-11-23
friends i am needing in my browser delphi click in links, in all links work normally, onmly links under table not clicking.
I am using this code for click in setaFilho1
EmbeddedWB1.OleObject.Document.all.Item('setaFilho1', 0).click; and when i am put for click in tbRetratilFilho11 not clicking, i am putting
EmbeddedWB1.OleObject.Document.all.Item('tbRetratilFilho11', 0).click;
the code is this

                  <table id="tbMenuVertical" class="tbMenuVertical" cellpadding="0" cellspacing="0">
                              <td valign="top">
                                    <div class="divContainerMenu" id="divContainerMenu">
                                          <table id="tbRetraltilPai1" onmouseover="mudaClassePai('1',1)" onmouseout="mudaClassePai('1',2)" class="tbItemPai" onclick="abreFecha('conteudoFilho',1,'setaFilho1','1')">
                                                      <td class="tdTituloMenuPai">
                                                            <span class="aMenuNome">Saldos                                                                                                                                                </span>
                                                      <td class="tdCursor" onclick="abreFecha('conteudoFilho',1,'setaFilho1','1')">
                                                            <div id="setaFilho1" class="divCursorAgrupado" onclick="abreFecha('conteudoFilho',1,'setaFilho1','1')">&nbsp;</div>
                                          <script type="text/javascript">LayersFilho[1] = "conteudoFilho"+1;</script>
                                          <div id="conteudoFilho1" style="display: none;">
                                                <table id="tbRetratilFilho11" class="tbItemFilho">
                                                            <td class="tdTituloMenuFilho">
                                                                  <a href="#" class="aMenuNome" onclick="mudaClasseLink(this,1,11,0);ajaxProcessUrl('/aapj/consultas/006.bb?disponivelCelular=sim&amp;tokenSessao=6fa8f10d5a3a019ada5988e6ab26385c&amp;codMenus=6125,6126,6127,7047,7048', tratarResposta);return false;">Conta corrente</a>

Question by:thaiskis
LVL 13

Accepted Solution

aflarin earned 500 total points
ID: 33548744
I'm not sure where you're trying to click by using this code:
  EmbeddedWB1.OleObject.Document.all.Item('tbRetratilFilho11', 0).click;

tbRetratilFilho11 is your table: <table id="tbRetratilFilho11" class="tbItemFilho">

but it has not onclick handler like <table id="tbRetratilFilho11" onclick="alert('clicked')">

or you want to click on the link in this table: <a href="#" class="aMenuNome".. ?
then you need change your code:

  EmbeddedWB1.OleObject.Document.all.Item('tbRetratilFilho11', 0).rows.Item(0).cells.Item(0).Children.Item(0).click;

Author Closing Comment

ID: 33550457

Expert Comment

ID: 33903900
Gostaria de falar com vc, thaiskis, vc tem email, msn



Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi component that can load a DLL in design time? 8 74
Performance of SQL statement 37 127
MS Access from Delphi 31 59
How to insert .png images to TClientDataSet .cds file? 2 30
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question