Jose's Read Only Forum 2023

General Category => General Discussion => Topic started by: Edwin Knoppert on May 19, 2012, 09:15:52 PM

Title: Invoke javascript?
Post by: Edwin Knoppert on May 19, 2012, 09:15:52 PM
I have seen some code from you which invokes javascript from PB code.
Could not find that anymore.
I simply need to trigger a js function, setting a value to a input having an onchange does not work until the input loses focus.
Title: Re: Invoke javascript?
Post by: José Roca on May 19, 2012, 09:56:01 PM
The only times that I have used javascript are some of the WebBrowser examples, and it has been copied from somewhere because I don't know how to program with that language.

I have also on example on hosting VBScript:
http://www.jose.it-berater.org/smfforum/index.php?topic=4383.msg15308#msg15308

You can use jascript by changing pIActiveScript = NEWCOM CLSID $CLSID_VBScript to pIActiveScript = NEWCOM CLSID $CLSID_JScript.