Solved

delphi embbebed Web Browser Help

Posted on 2010-08-27
3
967 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to debug For loops? 3 45
Is anyone willing to have a look through this code and help debug? 25 56
Delphi inherited method 6 59
Syntax Error 2 41
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
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 use and create keystrokes in Netbeans IDE 8.0 for Windows.

947 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

21 Experts available now in Live!

Get 1:1 Help Now