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

RadWindow querystring appends arguments

1 Answer 63 Views
Window
This is a migrated thread and some comments may be shown as answers.
Charlie Davies
Top achievements
Rank 1
Charlie Davies asked on 14 Apr 2010, 03:36 PM
I am using RadWindow as a security challenge when users attempt to access premium content links within the site without being first logged in.  Once the user logs in, they will be redirected to the appropriate page.  One requirement is that the user be able to close the modal dialog and go back to previewing the site.  The problem is that I don't want the RadWindow to force the parent page to reload when the RadWindow is closed. 
 
I am passing arguments into the radwindow when the parent page calls it through the client-side showdialog function. Tthe problem is that if I don't allow the radwindow to refresh the home page when it's closed, the radwindow appends the argument to its querystring on every successive call. I'm wondering if there's a way to force this querystring to empty out between calls to the radwindow without forcing the parent page to reload and without setting the DestroyOnClose property to false for the RadWindow. 

Does anyone know of a clean way to dispose of the RadWindow on the client-side and to reconstitute when the user next opens it?  This is probably much more of a general javascript type of question but hopefully someone can help out.

Thanks
-Charlie

1 Answer, 1 is accepted

Sort by
0
Charlie Davies
Top achievements
Rank 1
answered on 15 Apr 2010, 07:43 PM
Just wanted to follow up that I hadn't given the client-side API enough of a try before posting this issue.  I was able to achieve the desired effect by using the SetUrl method on the OnClientClose method.  So, when the user closes the rad window, I issued radwindow.SetUrl('xxx') where xxx is the base url of the page that fills the radwindow.  And the next time the user clicks on a link for secure content, the radwindow will challenge the user with a clean redirect url appended to the querystring instead of having it appended to the existing one.
Tags
Window
Asked by
Charlie Davies
Top achievements
Rank 1
Answers by
Charlie Davies
Top achievements
Rank 1
Share this question
or