ASP referring to server side variables in client side script 
Author Message
 ASP referring to server side variables in client side script

I build an array on the server side and put the element values into variant
variables on the server side.

ie a = nodearray(2,i)
    b = nodearray(3,i)

but when I reference the variables on the client side I get syntax problems
I have seen all sorts of ways to do this:
<%=a%>
"<%a%>"

What am I doing wrong-
p.s. am I in the wrong newsgroup????

Thanks



Thu, 07 Oct 1999 03:00:00 GMT  
 ASP referring to server side variables in client side script

Once a document is closed.  No Client-Side Script can access Server-Side
variables.  You would have to write the Server-Side variables to the page.
That is the only way.
--
___
Justin Rogers
Personal Programmer and Web Consultant
Microsoft SiteBuilder Network Level 1



Quote:
> I build an array on the server side and put the element values into
variant
> variables on the server side.

> ie a = nodearray(2,i)
>     b = nodearray(3,i)

> but when I reference the variables on the client side I get syntax
problems
> I have seen all sorts of ways to do this:
> <%=a%>
> "<%a%>"

> What am I doing wrong-
> p.s. am I in the wrong newsgroup????

> Thanks



Tue, 12 Oct 1999 03:00:00 GMT  
 ASP referring to server side variables in client side script

You could maintain a client-side Cookie to hold server side CGI variants.



Quote:
> Once a document is closed.  No Client-Side Script can access Server-Side
> variables.  You would have to write the Server-Side variables to the
page.
> That is the only way.
> --
> ___
> Justin Rogers
> Personal Programmer and Web Consultant
> Microsoft SiteBuilder Network Level 1



> > I build an array on the server side and put the element values into
> variant
> > variables on the server side.

> > ie a = nodearray(2,i)
> >     b = nodearray(3,i)

> > but when I reference the variables on the client side I get syntax
> problems
> > I have seen all sorts of ways to do this:
> > <%=a%>
> > "<%a%>"

> > What am I doing wrong-
> > p.s. am I in the wrong newsgroup????

> > Thanks



Sun, 07 Nov 1999 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Server side variables to client side script?

2. Client side scripting / server side scripting

3. Accessing Data generated with client-side script from server-side script

4. Calling Server Side Script from Client Side Script

5. Call Server Side Script From Client Side Script

6. Client side scripting / server side scripting

7. Client Side and Server Side Scripts

8. Client-side to Server-side variable?

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

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

11. Mixing of client-side and server-side scripts

12. Server-Side vs Client-Side script

 

 
Powered by phpBB® Forum Software