Link to home
Start Free TrialLog in
Avatar of sstewart091798
sstewart091798

asked on

Referring Url's Frameset

How do you return to a referring URL's frameset address?  I am using IE 4.0 with ASP pages, and HTTP_REFERER as the server variable to return this information.  The problem with HTTP_REFERER is that it returns only the frame's url that did the actual launch to the new URL address.  This results in the loss of the referring url's frameset reference once you try to return to it.
Avatar of slinky
slinky

have you tried going back with the javascript history.go(-1) ?
Store the frameset URL within the session when you first transmit it and then it will be available at any time later within the session
eg
Session("frameset_url")="http://www.mysite.com/frameset.asp"

and then

response.write "<A HREF="&Session("frameset_url")&">Back</A>"

or

Avatar of sstewart091798

ASKER

Thanks for your help, but in this case, I cannot use a session variable.  The referring frameset url could come from another site, which I wish to return to.  I have no way of setting a variable from their site.  Out site is on a corporate intranet, which other facilities within our firm, have links set up for access.  The HTTP_REFERER servervariable works well, returning to the calling url within a framset, but not the framset itself.
I am incorporating the return feature in a logout portion of our site.  The user should have the ability to jump to any of our different pages, and then selectively choose logout to return to their initial calling url.  I thought about using the history object, but if I didn't trap some type of counter variable (var) for each page the users hits, I wouldn't know where to return when using history.go(-var).  
 
The only other thing that I can think of is that you need to capture the go(-1) when they first hit you site. However I'm not sure that there is anything that you can get to which you can store (I don't have a JavaScript reference to hand) for later use.

The only other solution I can think of is that you open a seperate window for your site and when the log off you use go(-1) from the original browser winow. The chances are though you don't want a seperate window (I hope not I hate them).

In which case I think that you are sunk. Having said that it is normally the calling pages responsibility to sort this sort of thing out.
ASKER CERTIFIED SOLUTION
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for your help.  I was initially looking for some type of server variable that would provide the frameset url, although that may not exist.  This solution you provided will work out fine.  Thanks again.
Anytime,

Michel