radalert add_close issue.

3 posts, 1 answers
  1. Nate
    Nate avatar
    8 posts
    Member since:
    Aug 2007

    Posted 22 Jul 2010 Link to this post


    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. Answer
    Cori
    Cori avatar
    562 posts
    Member since:
    Jul 2010

    Posted 22 Jul 2010 Link to this post

    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.
  3. Nate
    Nate avatar
    8 posts
    Member since:
    Aug 2007

    Posted 22 Jul 2010 Link to this post

    Thanks Cori, I was thinking that, but wanted to make sure that was the issue.
Back to Top