Accessing Environment Variables from DHTML? 
Author Message
 Accessing Environment Variables from DHTML?

Hi Fellow Scripter!!!
Look at doing something as simple as:
    if ( Environ( "Var1" ) == "Foo" ) Then ...

prefer VBScript, but will take JScript.
Thank you.

remove the "m" in the address when replying via email, thanks.



Sat, 05 May 2001 03:00:00 GMT  
 Accessing Environment Variables from DHTML?
I'm not sure you are interested in ASP solution, but take a look at Session
and Application objects in global.asa file created by InterDev. Actually,
you don't need to use InterDev to create this file, but InterDev inserts
comments about what they do.

Anyway, use the following notation:

<% Option Explicit

Dim Session("Var1")

Session("Var1") = "Foo"

' That object will exist until client closed the browser

%>


Quote:
>Hi Fellow Scripter!!!
>Look at doing something as simple as:
>    if ( Environ( "Var1" ) == "Foo" ) Then ...

>prefer VBScript, but will take JScript.
>Thank you.

>remove the "m" in the address when replying via email, thanks.



Sat, 12 May 2001 03:00:00 GMT  
 Accessing Environment Variables from DHTML?
Thanks for the response, I am looking for an object that I guess I would
refer to from a .html to access the current machine environment variables.
I will probably make use of your input once I tackle .asp environment.
I do find the syntax and semantics of
            Dim Session("Var1")
unusual/weird.


Quote:
>I'm not sure you are interested in ASP solution, but take a look at Session
>and Application objects in global.asa file created by InterDev. Actually,
>you don't need to use InterDev to create this file, but InterDev inserts
>comments about what they do.

>Anyway, use the following notation:

><% Option Explicit

>Dim Session("Var1")

>Session("Var1") = "Foo"

>' That object will exist until client closed the browser

>%>



>>Hi Fellow Scripter!!!
>>Look at doing something as simple as:
>>    if ( Environ( "Var1" ) == "Foo" ) Then ...

>>prefer VBScript, but will take JScript.
>>Thank you.

>>remove the "m" in the address when replying via email, thanks.



Sun, 13 May 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Accessing Environment Variables

2. Need to access environment variable from VBSCRIPT

3. Accessing client Environment Variables

4. accessing environment variables from asp

5. Accessing environment variables

6. Accessing Client Environment Variables on Windows NT workstations

7. Accessing environment variables

8. accessing environment variables set by a batch file

9. environment variables: wshshell.environment or wshshell.expandenv ironmentstrings?

10. Visual Basic 6 and DHTML - How do i access Dhtml Object

11. Data Environment & DHTML document in VB6

12. Expose a variable in DHTML

 

 
Powered by phpBB® Forum Software