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

radalert add_close issue.

2 Answers 59 Views
Window
This is a migrated thread and some comments may be shown as answers.
Nate
Top achievements
Rank 1
Nate asked on 22 Jul 2010, 01:25 PM

Hello,


I got this example from another forum post.

        function AlertTest()
        {
            var oAlert = radalert("You will be redirected to Google");
            oAlert.add_close(function () { window.location.href = "http://www.google.com");
           
        }
        
  However, i get a  "object not supported" typical java script error.  It's not recognizing the add_close.

I'm using  Telerik Web UI 2009.1.527.35.

Any suggestions would be helpful.

2 Answers, 1 is accepted

Sort by
0
Accepted
Cori
Top achievements
Rank 2
answered on 22 Jul 2010, 05:22 PM
The reason it doesn't recognize it is because radalert is not a RadWindow. That method is only used on RadWindow objects, so in order to use it you would need to create a RadWindow object with the same message.

I hope that helps.
0
Nate
Top achievements
Rank 1
answered on 22 Jul 2010, 05:26 PM
Thanks Cori, I was thinking that, but wanted to make sure that was the issue.
Tags
Window
Asked by
Nate
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
Nate
Top achievements
Rank 1
Share this question
or