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?
How to Call a Javascript Function
Moderators: Gurus, Addon Administrators
-
CarlitoGil
- Posts: 294
- Joined: Sun Sep 07, 2008 10:46 am
- Location: Dominican Republic
- Contact:
How to Call a Javascript Function
iTunesMonkey + Acoustid – Find metadata from iTunes and Acoustid
Re: How to Call a Javascript Function
I think the way that my "Monkey Rok" script does this is by attaching the event to a hidden button like this...
...and then in my VBScript I do something like this...
Code: Select all
<input type="hidden" id="proxy" onclick="my_event()" />Code: Select all
Dim obj : Set obj = WB.Interf.Document.getElementById("proxy")
If Not (obj Is Nothing) Then
obj.fireEvent("onClick")
End IfDownload my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
-
CarlitoGil
- Posts: 294
- Joined: Sun Sep 07, 2008 10:46 am
- Location: Dominican Republic
- Contact:
Re: How to Call a Javascript Function
Thanks
iTunesMonkey + Acoustid – Find metadata from iTunes and Acoustid