Author Topic: Invoke javascript?  (Read 2695 times)

0 Members and 1 Guest are viewing this topic.

Offline Edwin Knoppert

  • Sr. Member
  • ****
  • Posts: 254
  • User-Rate: +11/-4
    • Hellobasic.com
Invoke javascript?
« 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.

Offline José Roca

  • Administrator
  • Hero Member
  • *****
  • Posts: 2485
  • User-Rate: +204/-0
Re: Invoke javascript?
« Reply #1 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.