Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Call JS Function from VFP using IE Automation

Status
Not open for further replies.

EzLogic

Programmer
Aug 21, 2001
1,230
US
I am doing IE automation and everythign is going well, until i got to this.

I have a link like this:

Code:
<td align="center" class="warpButton1special" NOWRAP
onclick="javascript:submitTxn('Something','Somthing1','Somthing2')"          onMouseOver="this.style.backgroundColor='Green'"
onMouseOut="this.style.backgroundColor='#00629F'">
Click Here to Launch the Search Page</td>

Howe can I have the oIE call the submitTxn function.

I tried this:
oIE.Document.Forms(0).Script.submitTxn('Somthing','Somthing1','Somthing2')

Also, this:
oIE.Document.Script.submitTxn('Somthing','Somthing1','Somthing2')

And I get error with Unknown name or something like that..

Any help is appreciated.

Ali Koumaiha
Wireless Toyz
Farmington Hills, Michigan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top