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="javascript:LT_Transfer('_ctl1__ctl0_Main_ Main_SelectRecipients1_ListBoxPhoneBook','_ctl1__c tl0_Main_Main_SelectRecipients1_ListBoxRecipients' , true, true, false, false); return false;" href="javascript:{if (typeof(Page_ClientValidate) != 'function' || Page_ClientValidate()) __doPostBack('_ctl1$_ctl0$Main$Main$SelectRecipien ts1$_ctl3','')} "><img src="images/buttonRight.gif" style="vertical-align: middle;" border="0"/></a></nobr><br />
<nobr><a title="Remove selected recipient(s)" onclick="javascript:LT_Transfer('_ctl1__ctl0_Main_ Main_SelectRecipients1_ListBoxRecipients','_ctl1__ ctl0_Main_Main_SelectRecipients1_ListBoxPhoneBook' , true, false, true, false); return false;" href="javascript:{if (typeof(Page_ClientValidate) != 'function' || Page_ClientValidate()) __doPostBack('_ctl1$_ctl0$Main$Main$SelectRecipien ts1$_ctl4','')} "><img src="images/buttonLeft.gif" style="vertical-align: middle;" border="0"/></a> REMOVE</nobr>
</td>
<td valign="top">
<select name="_ctl1:_ctl0:Main:Main:SelectRecipients1:List BoxRecipients" size="8" multiple="multiple" id="_ctl1__ctl0_Main_Main_SelectRecipients1_ListBo xRecipients" class="recipientList">
Please help! Thanks!