
pass server side vbscript to client side javascript
<html><blah><blah>
<script Langauge=Javascript>
var myjavastring;
myjavastring = '<%=myvbstring%>1;
</script>
--
Michael Harris
Microsoft.MVP.Scripting
--
Please do not email questions - post them to the newsgroup instead.
--
Quote:
> Hi Everyone.
> This one has me pretty stumped so hopefully someone out there can help me
> out.
> I have some server side vbscript that returns a string. I want to pass that
> string to some javascript so that the javascript can act on it. I have been
> searching all of the net and through my limited library at work but cannot
> find the answer.
> This is a pretty simple version of it.
> <%
> dim myvbstring
> myvbstring = "This is my server side vbstring"
> %>
> <html><blah><blah>
> <script Langauge=Javascript>
> var myjavastring;
> myjavastring = myvbstring;
> </script>
> Hope someone can help
> Thanks
> Adam