I'm going crosseyed need help with simple ?

Results 1 to 3 of 3

Thread: I'm going crosseyed need help with simple ?

  1. #1
    Join Date
    Dec 1969

    Default I'm going crosseyed need help with simple ?

    I need to redirect from a page that is inside of a frame...<BR><BR>I am using response.redirect "../thankyou.asp"<BR><BR>but because the refering page is inside the frame it loads the new page inside the frame also...I need to replace the page so that it is the only page open and it is "on top"... like the HTML _self or _top.<BR><BR>I know simple question but I have been looking at code all day...got a headache and it is just not coming to me...<BR><BR>thanks

  2. #2
    Join Date
    Dec 1969

    Default can't be done with asp, you'll need to d

    your redirect with javascript code. A quick search on google brought up these:<BR><BR>http://www.psacake.com/web/ej.asp<BR>http://weblogs.asp.net/ksamaschke/archive/2003/02/23/2831.aspx<BR>http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=0&lngWId=4<BR>

  3. #3
    Join Date
    Dec 1969

    Default You can hack a workaround

    Just add a simple script on your thank you page.<BR><BR>&#060;SCRIPT Language="JavaScript"&#062; <BR>if ( window.top != self ) <BR>{ <BR>window.top.location.href="http://www.yourwebsite.com/thankyou.asp"; <BR>} <BR>&#060;/SCRIPT&#062;<BR><BR>If it is inside a frame it will get ride of it....<BR><BR>If you need this dynamically on any of the pages<BR>just pass a value if querystring<BR><BR>response.redirect "../thankyou.asp?Noframes=no"<BR><BR>Then on page<BR><BR>&#060;%IF request.Querystring("Noframes") = "no" then%&#062;<BR> &#060;SCRIPT Language="JavaScript"&#062; <BR> if ( window.top != self ) <BR> { <BR> window.top.location.href="http://www.yourwebsite.com/thankyou.as p"; <BR> } <BR> &#060;/SCRIPT&#062;<BR>&#060;%End IF%&#062;<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts