Help with Confirm Dialog

2 posts, 0 answers
  1. MissioDei
    MissioDei avatar
    17 posts
    Member since:
    Aug 2008

    Posted 08 Jan 2010 Link to this post

    I want to bring up a modal confirmation window when a user clicks a link on my site. This window would basically say that they are leaving our site and we are not responsible, blah blah and when the user clicks "ok" they are redirected to the link.

    How would I accomplish this with radcofirm?

    I'm still a beginner and having a little hard time understanding the example here:

    Where would I insert the link if the dialog returns true?

    Thanks for any help.

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 11 Jan 2010 Link to this post


    Here is the example for redirecting to new page when clicking "Ok" button in Confirm.

    <input id="Button1" type="button" value="button" onclick="conf();" /> 

    <script type="text/javascript"
        function conf() { 
            radconfirm("You are leaving this site and we are not responsible for...", ClientCallback, 480, 180, ''"title");   
        var ClientCallback = function(arg) { 
            if (arg) { 
                // Clicked Ok - arg returns true 
                window.location = ""

Back to Top