Solved

delphi embbebed Web Browser Help

Posted on 2010-08-27
3
960 Views
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">
                        <tr>
                              <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')">
                                                <tr>
                                                      <td class="tdTituloMenuPai">
                                                            <span class="aMenuNome">Saldos                                                                                                                                                </span>
                                                      </td>
                                                      <td class="tdCursor" onclick="abreFecha('conteudoFilho',1,'setaFilho1','1')">
                                                            <div id="setaFilho1" class="divCursorAgrupado" onclick="abreFecha('conteudoFilho',1,'setaFilho1','1')">&nbsp;</div>
                                                      </td>
                                                </tr>
                                          </table>
                                          <script type="text/javascript">LayersFilho[1] = "conteudoFilho"+1;</script>
                                          <div id="conteudoFilho1" style="display: none;">
                                    
                                                <table id="tbRetratilFilho11" class="tbItemFilho">
                                                      <tr>
                                                            <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>
                                                            
                                                            </td>

PLEASE WHAT SOLUTION FOR THIS
0
Comment
Question by:thaiskis
3 Comments
 
LVL 13

Accepted Solution

by:
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;
0
 

Author Closing Comment

by:thaiskis
ID: 33550457
VERY VERY THANKS
0
 

Expert Comment

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

grato

samk3y
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now