vbscript and jscript 
Author Message
 vbscript and jscript

I am using an asp page with VBScript and jscript. how can I pass values
between the scripts?


Sat, 14 Dec 2002 03:00:00 GMT  
 vbscript and jscript
Its simple!
You can pass value of YourVar to script zzz.asp from any asp script as
follows:

response.redirect zzz.asp&YourVar=someValue

Imran Badr.


Quote:
> I am using an asp page with vbscript and jscript. how can I pass values
> between the scripts?



Sat, 14 Dec 2002 03:00:00 GMT  
 vbscript and jscript
you can use a global variable like this.

<script language="vbscript">
Dim stuff                                                 'this declares a
variable called "stuff" thats empty
Sub doStuff                                            'this will make the
variable "stuff" contain "this is stuff" if called
     stuff = "this is stuff"
End Sub
</script>

<script language="JavaScript">
function whatIsStuff()
{
    document.form.textbox.value = stuff;  //this java script will put the
value from
                                                             //the variable
set up in VB in a text box

Quote:
}

</script>

All you have to do is set the variable up outside a subroutine or function.
That way any thing in the page has access to it.

William Wallace


Quote:
> I am using an asp page with vbscript and jscript. how can I pass values
> between the scripts?



Sat, 14 Dec 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. VBScript of JScript??

2. Hiding toolbar/statusbar, etc from vbscript or jscript

3. Using VBScript with JScript as default

4. Calling VBScript in JScript

5. convert from vbscript to jscript

6. Converting VBScript to JScript

7. How Can I translate this vbscript to Jscript

8. Server Side VBScript and JScript sharing variables?

9. vbscript to jscript question

10. Help with VBScript-->JScript !!

11. VBScript and JScript???

12. Converting VBScript to JScript

 

 
Powered by phpBB® Forum Software