Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > checking for frames

Reply
Thread Tools

checking for frames

 
 
middletree
Guest
Posts: n/a
 
      09-26-2005
For the record, I hate frames. But I am stuck with them for this project.
Just wanted to get that out of the way so that any helpful replies I get
won't include chastisement for using frames.

OK, here's the question. How can I use a server-side script to determine if
the page being loaded is doing so by itself, vs. in a frame? If it is by
itself, I want to put in ASP code to redirect it to the frames-based page.


 
Reply With Quote
 
 
 
 
Ray Costanzo [MVP]
Guest
Posts: n/a
 
      09-26-2005
You can't, really. I mean, you can kinda by using
Request.ServerVariables("HTTP_REFERER"), but you'd have to cover a lot of
different circumstances to avoid false positives.

This is most often done with client-side script.
http://www.webreference.com/js/column36/forcing.html

(I personally would do location.replace(url), not location.href=url.)

Ray at home


"middletree" <> wrote in message
news:%...
> For the record, I hate frames. But I am stuck with them for this project.
> Just wanted to get that out of the way so that any helpful replies I get
> won't include chastisement for using frames.
>
> OK, here's the question. How can I use a server-side script to determine
> if
> the page being loaded is doing so by itself, vs. in a frame? If it is by
> itself, I want to put in ASP code to redirect it to the frames-based page.
>
>



 
Reply With Quote
 
 
 
 
middletree
Guest
Posts: n/a
 
      09-26-2005
this'll work.


thanks!


"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:...
> You can't, really. I mean, you can kinda by using
> Request.ServerVariables("HTTP_REFERER"), but you'd have to cover a lot of
> different circumstances to avoid false positives.
>
> This is most often done with client-side script.
> http://www.webreference.com/js/column36/forcing.html
>
> (I personally would do location.replace(url), not location.href=url.)
>
> Ray at home
>
>
> "middletree" <> wrote in message
> news:%...
> > For the record, I hate frames. But I am stuck with them for this

project.
> > Just wanted to get that out of the way so that any helpful replies I get
> > won't include chastisement for using frames.
> >
> > OK, here's the question. How can I use a server-side script to determine
> > if
> > the page being loaded is doing so by itself, vs. in a frame? If it is

by
> > itself, I want to put in ASP code to redirect it to the frames-based

page.
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
having a problem with scrolling frames as if no frames surfunbear@yahoo.com HTML 0 03-08-2006 09:54 PM
Frames and borders around specific frames meyousikmann@yahoo.com HTML 1 02-10-2006 11:12 PM
Frames or not Frames... Ale HTML 17 08-05-2005 12:10 AM
Link needed to go from a non-frames page to a Frames page, and load a particular frame. How? - Newbe Philip HTML 3 06-28-2004 03:06 PM
From Frames to no frames? Powerslave2112 HTML 2 01-20-2004 10:30 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57