javascript_howto thread: Is it possible to send values of variables from VbScript to JavaScript?
Hi,
the big question is why you need to do this, but anyway:
<script language="VBScript">
function checkVB(text) text = text & " string2" checkVB = text end function
</script>
<script language="JavaScript">
function checkJS(text){
text = checkVB(text)
alert(text)
}
</script>
<a href="javascript: void checkJS('string1')">Add</a>
A nother way is to use a hidden input-field if its a string value.
But again. Why?
/Peter
----- Original Message -----
From: <lawirene88@y...>
To: "JavaScript HowTo" <javascript_howto@p...>
Sent: Tuesday, November 27, 2001 3:40 PM
Subject: [javascript_howto] Is it possible to send values of variables from
VbScript to JavaScript?
> Hi everyone,
>
> I have a question. Is it possible to send variables from VbScript to
> Javascript in the same page? If it can be done, how?
>
> Thank You
>
>
peter.mickelsson@b...
$subst('Email.Unsub')
>
> Read the future with ebooks at B&N
>
http://service.bfast.com/bfast/click?bfmid=2181&sourceid=38934667&categoryid
=rn_ebooks