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

Duplicate X button behavior in javascript code

1 Answer 37 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jomey
Top achievements
Rank 1
Jomey asked on 27 Mar 2010, 02:09 AM
I need to Duplicate X button behavior in javascript code.

My domains are different so I'm getting an access denied message when using frameelement.  But when I click on the X - it closes the window and works.

So, is there javascript code that does exactly what clicking the "X" button does?

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 29 Mar 2010, 12:37 PM
Hi Jomey,

What the X button does is to get a reference to the RadWindow object and call its close() method. When the content page is from another domain however, the browsers' security mechanism will not allow you to do that - otherwise it would be a major security hole.



Greetings,
Georgi Tunev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Window
Asked by
Jomey
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or