passing variables from VBS to JS 
Author Message
 passing variables from VBS to JS

Hi ppl,
    xPos and yPos correspond to the current x,y positions of the mouse (captured using window.event.x in VBS).. this works.. but what i want to do now is to pass these two variables to a javascript, how would i do this ?
here's some code:
                            <script type="" language="JavaScript">
                            function doStyles(xPos,yPos){
                                alert(xPos + "," + yPos)

                            <script type="" language="VBS">
                            sub getMouseLocation()
                             dim xPos 'x position of mouse
                             dim yPos 'y position of mouse

                             xPos = window.event.x
                             yPos = window.event.y

                             msgbox xpos & "," & ypos
                             end sub 'mouse location

Mon, 30 Apr 2001 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. How to pass back variables from called vbs from vbs using wsh

2. JS: Passing Variables between open windows?

3. Passing a session variable into a JS file

4. wsf - passing arguments between vbs-part and js-part

5. How can VBS use variables of JS ?

6. passing variable to vbs program (WSH)

7. passing variables from .bat files to .vbs scripts

8. How do I pass a variable to *.vbs

9. Passing values to variables in a .vbs file

10. Convert js in vbs (S.O.S.!!)

11. Mixing JS and VBS problems.

12. VBS version of this JS code???


Powered by phpBB® Forum Software