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

parameters lost when radopens page on another domain

2 Answers 32 Views
Window
This is a migrated thread and some comments may be shown as answers.
Zenute Marins
Top achievements
Rank 1
Zenute Marins asked on 18 Oct 2011, 08:20 PM
Hi,
I´ve been trying to radopen an url  as follows:
<telerik:RadCodeBlock ID="java" runat="server">
<script type="text/javascript">

function redebp(sender, args) {

radopen("http://www.redebp.com.br/LoginUno.aspx?p=169","redebp")
}

 

The page is correctly load but parameter p is always null.

If instead I open the same page on the same site as below,
<telerik:RadCodeBlock ID="java" runat="server">
<script type="text/javascript">

function redebp(sender, args) {

radopen("LoginUno.aspx?p=169,"redebp");

}
The page is correctly load as before, but now the parameter p holds the expected value (169).

Can someone please explain this weird behaviour ?

TIA



2 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 20 Oct 2011, 01:12 PM
Hello Zenute,

I tried this code and it seems to be working as expected - the URL loaded in the iframe contains the querystring parameter that is passed: http://screencast.com/t/0qclOIR43. I am also attaching the page I tested with as a reference.

If your issue is on the server-side then this behavior should not be related to the RadWindow as it cannot modify your page in any way. Please try loading your page in a simple iframe and see if it makes a difference whether you pass the full URL or a relative URL. If it does - then this must be some browser quirk on the way URLs are passed to iframes, although this is the first time it is being reported.


Best wishes,
Marin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Zenute Marins
Top achievements
Rank 1
answered on 05 Nov 2011, 10:25 AM
Thank you Marin.
We gave up passing parameters to radwindow. We decided to use a custom persistence method to share the parameters between pages.
Tags
Window
Asked by
Zenute Marins
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Zenute Marins
Top achievements
Rank 1
Share this question
or