pass server side vbscript to client side javascript 
Author Message
 pass server side vbscript to client side javascript

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



Mon, 13 Oct 2003 14:47:18 GMT  
 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



Mon, 13 Oct 2003 22:40:42 GMT  
 pass server side vbscript to client side javascript
Thanks Michael


Quote:
> <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.
> --




- Show quoted text -

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



Tue, 14 Oct 2003 07:06:25 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Importing Paradox data into an InterBase database

2. string to integer

3. EOLN

4. Calling client-side javascript function from server-side vbscript

5. Calling client-side javascript from server-side vbscript

6. how to pass client side values to server side

7. Passing variables from server-side to client-side

8. Passing variables from client-side to server-side

9. Passing Server Side Arrays to Client Side Scripts

10. Passing Server side vars to Client side

11. Passing a server side var to client side block

12. Passing variable from server side to client side

 

 
Powered by phpBB® Forum Software