Webbrowser and Javascript -- Please help!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wxscooter
    New Member
    • Mar 2007
    • 11

    #1

    Webbrowser and Javascript -- Please help!

    OK, this is frustrating. I want my VB6 program to use Webbrowser to fill out info on a page. One of the things I need to do is click an arrow to transfer an item from one text box to another. I want to tell the program to click the arrow, but I can't find the ID or name! Instead, it's just a javascript function.

    I'm clueless as to what to do! How do I tell the program to click the arrow like the user would. Can I make webbroswer call the function?

    Here's the sample code with the 'ADD' and 'REMOVE' arrows.


    </td>
    <td class="title" align="center">

    <nobr>ADD <a title="Add selected recipient(s)" onclick="javasc ript:LT_Transfe r('_ctl1__ctl0_ Main_Main_Selec tRecipients1_Li stBoxPhoneBook' ,'_ctl1__ctl0_M ain_Main_Select Recipients1_Lis tBoxRecipients' , true, true, false, false); return false;" href="javascrip t:{if (typeof(Page_Cl ientValidate) != 'function' || Page_ClientVali date()) __doPostBack('_ ctl1$_ctl0$Main $Main$SelectRec ipients1$_ctl3' ,'')} "><img src="images/buttonRight.gif " style="vertical-align: middle;" border="0"/></a></nobr><br />
    <nobr><a title="Remove selected recipient(s)" onclick="javasc ript:LT_Transfe r('_ctl1__ctl0_ Main_Main_Selec tRecipients1_Li stBoxRecipients ','_ctl1__ctl0_ Main_Main_Selec tRecipients1_Li stBoxPhoneBook' , true, false, true, false); return false;" href="javascrip t:{if (typeof(Page_Cl ientValidate) != 'function' || Page_ClientVali date()) __doPostBack('_ ctl1$_ctl0$Main $Main$SelectRec ipients1$_ctl4' ,'')} "><img src="images/buttonLeft.gif" style="vertical-align: middle;" border="0"/></a> REMOVE</nobr>

    </td>
    <td valign="top">
    <select name="_ctl1:_ct l0:Main:Main:Se lectRecipients1 :ListBoxRecipie nts" size="8" multiple="multi ple" id="_ctl1__ctl0 _Main_Main_Sele ctRecipients1_L istBoxRecipient s" class="recipien tList">

    Please help! Thanks!
Working...