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

Unable to open PayPal page within RadWindow (opens in main page)

2 Answers 58 Views
Window
This is a migrated thread and some comments may be shown as answers.
Gary Davis
Top achievements
Rank 2
Gary Davis asked on 02 Aug 2008, 02:33 PM
On a button click, I want to open up a RadWindow with a PayPal payment page in it. Instead, the RadWindow disappears and the PayPal page opens up in the parent window plus it displays an error that does not occur if you manually try the url within the browser.

Perhaps it is related to redirection by PayPal or maybe that it is SSL. I have seen a few other postings here related to redirects opening in the parent with no solution.

The url is:

https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=bill@hotmail.com&item_name=iPod&amount=100.00

The test case is:
<script type="text/javascript">  
function openWin()  
{  
    var url = "https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=bill@hotmail.com&item_name=iPod&amount=100.00";  
    var oWnd = radopen(url,"RadWindow1");   
}  
</script> 
 
<asp:ScriptManager runat="server" ID="scriptMgr" /> 
<telerik:RadWindowManager ID="WindowManager1" runat="server"></telerik:RadWindowManager> 
<button onclick="openWin(); return false;">open window</button> 
 
 
 

Thanks,
Gary Davis

2 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 04 Aug 2008, 01:16 PM
Hello Gary,

This behavior is expected - RadWindow is basically an IFRAME and all secure sites like PayPal have a security code on their pages which checks if the page is displayed in a browser or in a container (an IFRAME). If they are displayed in a container, they will change the parent's page location to their site's one - this is done in order to avoid frauds.


Sincerely yours,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Gary Davis
Top achievements
Rank 2
answered on 04 Aug 2008, 01:24 PM
Thanks. I changed the code to use open.window() instead.

Gary Davis
Tags
Window
Asked by
Gary Davis
Top achievements
Rank 2
Answers by
Georgi Tunev
Telerik team
Gary Davis
Top achievements
Rank 2
Share this question
or