How to Call a Javascript Function

Rispondi al messaggio

Emoticon
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode attivo
[img] attivo
[url] attivo
Emoticon attive

Revisione argomento
   

Espandi visuale Revisione argomento: How to Call a Javascript Function

Re: How to Call a Javascript Function

da CarlitoGil » sab ott 31, 2009 2:05 pm

Thanks

Re: How to Call a Javascript Function

da trixmoto » sab ott 31, 2009 1:58 pm

I think the way that my "Monkey Rok" script does this is by attaching the event to a hidden button like this...

Codice: Seleziona tutto

<input type="hidden" id="proxy" onclick="my_event()" />
...and then in my VBScript I do something like this...

Codice: Seleziona tutto

Dim obj : Set obj = WB.Interf.Document.getElementById("proxy")
If Not (obj Is Nothing) Then
  obj.fireEvent("onClick")
End If

How to Call a Javascript Function

da CarlitoGil » sab ott 31, 2009 1:21 pm

I have a script that creates a dialog with an ActiveX browser
WB.Interf.document.body.tagName
returns 'BODY'
so WB.Interf is good and ready
WB.Infert gives access to window, so WB.interf.alert should work like window.alert, it doesn't

How do I call my JScript functions?

Top