I need to call a vbscript function from within an external javascript file :: function

Posted by RadAdam on Stack Overflow See other posts from Stack Overflow or by RadAdam
Published on 2010-05-28T13:16:27Z Indexed on 2010/05/28 13:21 UTC
Read the original article Hit count: 332

Filed under:
|
|
|

heres what i got so far :

This function is not directly in the html page , its in an external js file , 'main.js'.

function createVBScript(){
 var script=document.createElement('script');
 script.type='text/vbscript';
 script.src='vb/fldt.vbs';
 document.getElementsByTagName('head')[0].appendChild(script);
}

the vbs file contains :

<!-- // Visual basic helper required to detect Flash Player ActiveX control version information
 Function VBGetSwfVer()
    MsgBox "Hello there"    
 End Function
// -->

thats all i want to do for the time being. how do i call VBGetSwfVer() from main.js ?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about function