ns_adp_argv 0 tells you the *callee*.
 
In the below example, ns_adp_argv 0 would always return "foo.adp".
 
In the code example, "index" and "processing" would be in ns_adp_argv 1.
 
-- michael
 
In a message dated 1/28/2004 12:26:07 PM Eastern Standard Time, [EMAIL PROTECTED] writes:
simple way is to use the ns_adp_argv's...

index.adp:
...
ns_adp_include foo.adp "index"
...
processing.adp:
...
ns_adp_include foo.adp "processing"
...

foo.adp
...
set caller [ns_adp_argv 0]
switch -exact $caller {
    index { # do something }
    processing { # do something else }
    default { # page might have been called by browser or other file }
}

let me know if that works for ya...

Mike

 
_____________________
michael richman

princ software engineer
aol technologies
610.668.6569

-- AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.

Reply via email to