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

detecting if popups have been disabled

1 Answer 47 Views
Window
This is a migrated thread and some comments may be shown as answers.
mww
Top achievements
Rank 1
mww asked on 09 May 2013, 06:53 AM
I have an enquiry form that I want to place in a popup window accessed from a link on my main page.  If a user has popups disabled this should stop the window from opening.  How can I detect if the window cant be opened and divert the user to a different page ?

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 10 May 2013, 12:44 PM
Hello,

RadWindow is not blocked by popup blockers in the browser. If you find a way to perform this check (which, in my opinion, should not be available as it exposes information about the user's system) you can create a code library project that demonstrates the approach and we will gladly award your efforts with Telerik points. Once you can perform such a check you should simply add it before opening the RadWindow, something like if(popupsDisabled) window.location = theUrl; else radopen(theUrl);


All the best,
Marin Bratanov
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.
Tags
Window
Asked by
mww
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or