Help: problem passing variable between client/server scripts 
Author Message
 Help: problem passing variable between client/server scripts

I have this script that processes data on the server.  I want it to
navigate to a new URL and send along a little information.  Since
there is no form in the script, I have explicitly tacked the data onto
the querystring.  It looks something like this:

<SCRIPT LANGUAGE="VBScript" RUNAT="Server">
...
here="newPage.asp?name=" & name
GoTo here
</SCRIPT>

<SCRIPT LANGUAGE="VBScript">
Sub GoTo(url)
        navigate url
End Sub
</SCRIPT>

(I created the GoTo subroutine because the name variable, which holds
a value from earlier in my server side script, was not giving me that
value in my client side script.)

My problem can be interpreted in many different ways.  "GoTo" isn't
being recognized as a subroutine, and I don't know why.  On the other
hand, if I could get my "name" variable to retain its value into the
client side script, I could do away with the subroutine entirely. Does
anyone have a proposed solution to this dilemma?



Sat, 06 Mar 2004 12:36:22 GMT  
 Help: problem passing variable between client/server scripts
Hi,

Are you looking for this?

<SCRIPT LANGUAGE="VBScript" RUNAT="Server">
here="newPage.asp?name=" & name
</SCRIPT>

<SCRIPT LANGUAGE="VBScript">
        window.navigate <%=here%>
</SCRIPT>

Regards,
Ben



Sat, 06 Mar 2004 13:07:41 GMT  
 Help: problem passing variable between client/server scripts
Um, this doesn't make any sense.  Inserting script-level code between
<SCRIPT>...</SCRIPT> tags is redundant.  And what you wrote is
equivalent to the evoking the Response.write command--

        window.navigate Response.write here

--which is definitely not what I want.  Thanks for trying to help, at
least.

Quote:
> <SCRIPT LANGUAGE="VBScript" RUNAT="Server">
> here="newPage.asp?name=" & name
> </SCRIPT>

> <SCRIPT LANGUAGE="VBScript">
>    window.navigate <%=here%>
> </SCRIPT>



Sun, 07 Mar 2004 01:52:51 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Help: problem passing variable between client/server scripts

2. Pass client script variable to server script variable

3. Urgent : Passing variables from client script to server side

4. Assigning Client Script Variables to Application level variables inside of a Client Script

5. Passing variable between client and server

6. Passing Variables from Server to Client

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

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

9. passing variables from server to client?

10. Passing variable from server side to client side

11. passing client variables to the server

12. Passing value from Server script to client script.

 

 
Powered by phpBB® Forum Software