Duplicate X button behavior in javascript code

2 posts, 0 answers
  1. Jomey
    Jomey avatar
    60 posts
    Member since:
    Jan 2008

    Posted 26 Mar 2010 Link to this post

    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?
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 29 Mar 2010 Link to this post

    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.
Back to Top