Solved

delphi embbebed Web Browser Help

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

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
Suggested Courses
Course of the Month10 days, 23 hours left to enroll

632 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