This is a migrated thread and some comments may be shown as answers.

Performing a Browser Re-direct Inside a RadWindow

1 Answer 70 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jerry
Top achievements
Rank 1
Jerry asked on 19 Aug 2009, 07:00 PM
Hello,

I am using a Modal RadWindow popup on page 'A' that opens with the 'radopen' javascript method.  The window pops up (page 'B'), then some processing is done to the query string, and the RadWindow is immediately re-directed to page 'C'.  Page C is not a part of our site.

The intent is that the user does some things on Page C, then closes the window, then some event happens back on Page A.  When the RadWindow is redirected to page C, everything seems to be working.  The problem happens if the user clicks a link on page C to page 'D' (also not part of our site).  When this happens, it looks like the entire Browser is re-directed, rather than just the RadWindow.  So we effectively lose page A entirely, and we no longer have a radWindow.  We are left with only page D in our browser window.

We have no control over Page C or its mechanism for performing re-direction.  We just want whatever happens on Page C to stay on Page C and not redirect the entire browser page.  Is this possible?  And if not, are there any good alternatives?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 20 Aug 2009, 05:50 AM
Hello Jerry,

The 2 most probable reasons for such behavior are:
  1. the links in page C are set with  target="_top" which forces the browser to load them as topmost, e.g. not in the IFRAME container (RadWindow is an IFRAME) but directly in the browser.
  2. There is a "frame buster" script on page D that makes sure that the page will always be opened as topmost in the browser. Here is a sample of such "frame buster":
    if (window != window.top) window.top.location.href = window.location.href;    
I am afraid however that there is no workaround for this since you don't have control over pages C and D - otherwise it would be a major security hole.


Greetings,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Window
Asked by
Jerry
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or