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

Popup Window in iFrame?How to fix it center?

2 Answers 490 Views
Window
This is a migrated thread and some comments may be shown as answers.
Airad
Top achievements
Rank 1
Airad asked on 27 Jun 2009, 11:39 AM

hi!

I'm using a javascript to launch a window.

<script type="text/javascript">  
    function openRadWin()  
    {  
        radopen("http://www.telerik.com","RadWindow1");   
    }  
</script> 

The problem is that this window is launched inside a frame.

I want to know :

  1. If this launched window can be moved out of the frame? or be blocked inside of the frame?
  2. How to popup it in screen center? but not in frame center.

 

In  a word, how to popup the window from iframe, fixing it in screen center and moving out of the frame?

In my page, left side is a masterpage and right side there is an iframe in it, maybe like this demo effects:
http://demos.telerik.com/aspnet-ajax/window/examples/radopen/defaultcs.aspx

If luanching window in iframe can't make this effects, is it necessary to popup a window from main page where the iframe is contained?

Hope I described the situation clearly, thank you!

Airad

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Tunev
Telerik team
answered on 29 Jun 2009, 06:38 AM
Hi Airad,

RadWindow cannot be shown outside of the browsers or outside of the IFRAME container where it is shown - just like any other DHTML control, it can exists only in the context of the page from which it was called. If you have an IFRAME on your page and you wish to open the RadWindow on the topmost page, you need to put the RadWindow / RadWindowManager control there and then call it from within the IFRAME.

Best wishes,
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.
0
Airad
Top achievements
Rank 1
answered on 29 Jun 2009, 06:55 AM
I understand! Thanks!
Tags
Window
Asked by
Airad
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Airad
Top achievements
Rank 1
Share this question
or