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

Window Returning Blank Page With External URL

1 Answer 891 Views
Window
This is a migrated thread and some comments may be shown as answers.
Shawn
Top achievements
Rank 1
Shawn asked on 10 Feb 2012, 10:34 PM
I am trying to load a simple RadWindow that will contain a google map.  The link is correct, but for some reason when I open it in a RadWindow I get a blank page.  Not a 404 or any other error, just blank.

<script type="text/javascript">
 
        function OpenMap(URL) {
            var wnd = window.radopen(URL, null);
            wnd.setSize(520, 520);
            wnd.center();
            return false;
        }
 
    </script>
 
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Modal="True"
        KeepInScreenBounds="True" Skin="Windows7" EnableViewState="False"
        Behaviors="Close, Move">
    </telerik:RadWindowManager>

Then here is my link on the page:
<a href="#" onclick="return OpenDealerMap('http://maps.google.com/?q=1600%20Fedex%20Way%20%20Landover,%20Maryland%2020785&zoom=20&size=512x512&maptype=roadmap')">Map It</a>

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 13 Feb 2012, 01:31 PM
Hi Shawn,

There are some pages that do not allow the developer to load them in iframes. This is commonly known as a frame buster script. Google are one prime example - approximately in the summer they included this in their pages, so you cannot load them in an iframe. And RadWindow uses an iframe to load the page, whose URL you provide. This means that the same behavior would be observed with the following markup:
<iframe src="http://maps.google.com/?q=1600%20Fedex%20Way%20%20Landover,%20Maryland%2020785&zoom=20&size=512x512&maptype=roadmap"></iframe>

 and that there is nothing we can do, but to load it in a new browser popup, via window.open for example.

Regards,
Marin
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Window
Asked by
Shawn
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or