Solved

delphi embbebed Web Browser Help

Posted on 2010-08-27
3
988 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
[X]
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
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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
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…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

710 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