Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Iframe and Request.ServerVariables("SCRIPT_NAME")

38 views
Skip to first unread message

Robert Grund

unread,
Feb 8, 2003, 12:52:25 PM2/8/03
to
Hello,

can some one help me out.

I have a page "Page1" which has an iframe tag enclosed . The iframe calls
"Page2"

In "Page2" I have a script which writes a cookie on the client with the
Request.ServerVariables("SCRIPT_NAME") and "Page2" is refreshing itself
several times. Now with the Request.ServerVariables("SCRIPT_NAME") I get
the entry "Page2" but I want to get "Page1". Also when the iframe is
refreshing itself I want "Page1" to be updated within the cookie.

How can i do that? Any ideas? Am I using the wrong variable? Should I use
Referer? Will this work?

Robert


Atrax _

unread,
Feb 9, 2003, 9:30:45 AM2/9/03
to
I think you're missing what an IFRAME actually is.

the reason you're getting 'page2' as the script_name is becaue that is
_actually_ the script name. think about it. Referer might work, but
probably not reliably. In actual fact, it's probably be more reliable to
get the parent name in client-side script. no, really.

but anyway, what is the point behind all of this?

________________________________________
I got bored with my old signature,
so I changed it

Atrax. MVP, IIS
http://rtfm.atrax.co.uk/

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Robert Grund

unread,
Feb 9, 2003, 9:52:51 AM2/9/03
to
HI,

I have writen a banner ad script. and I do not want that the iframe is
reloaded all the time. So i am setting cookies with the filename and also a
counter. if the counter is now at 20, the refresch code will not be added
to the html coding. as the file is always page2, no more banner ads are
shown even when you click on a different page as page 2 is always the one
which fires the script. http_referer currently works fine and the banner
ads are always shown.

thanks for your post.

robert
"Atrax _" <anon...@devdex.com> schrieb im Newsbeitrag
news:#zF2VfE0CHA.1812@TK2MSFTNGP11...

0 new messages