Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I need to know who is the sender

Status
Not open for further replies.

erbowl

Programmer
Jun 14, 2001
5
CA
Hi
I have problems to know who is the sender in a frame page.

thanks for your HELP!
 
Do you mean you need to know if you ASP page was opened inside of a frame, and if so what page the request came from?

If that is the case you will have to use a mix of client and server side code to solve the problem.

<%
if request.querystring(&quot;frame&quot;) <> &quot;true&quot; then
%>
<script>
if document.frames.length != 0
{ document.location.replace(<%=request.servervariables)&quot;SCRIPT_NAME&quot;)%>?frame=true&referrer='+document.referrer);
}
</script>
<% else
'FRAME DETECTED.. LOG REFERRER HERE
end if%>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top