• Welcome to Powerbasic Museum 2020-B.
 

News:

Forum in repository mode. No new members allowed.

Main Menu

Invoke javascript?

Started by Edwin Knoppert, May 19, 2012, 09:15:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Edwin Knoppert

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.

José Roca

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.