I think I asked this wrong.
I am not concerned w/ processing foo.adp 2x. I need to do that.
What I am looking for is for foo.adp to know that index.adp or processing.adp included it, so I can alter the code in foo.adp based on what page includes it.
thx
divney
At 11:43 AM 1/28/04 -0500, you wrote:
In a message dated 1/28/2004 11:14:11 AM Eastern Standard Time, [EMAIL PROTECTED] writes:
A simple way would be:
- Hello,
- Lets say i have a page called index.adp and this includes a file called foo.adp
- But I also have a processing.adp page that can also include foo.adp
- Is there any way in foo.adp to know what page included it ?
- ie either the processing.adp or the index.adp page ?
- Thanks !
- divney
In processing.adp, you could do:
<%
global _processed
if {[info exists _processed]} {
ns_adp_return
}
set _processed 1
# do the processing.
%>
That way processing.adp will only run once.
-- michael
_____________________
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.
-- 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.
