jquery ui dialog query with how to continue with a link

jquery ui dialog query with how to continue with a link

Hi,

I'm have a dialog box appearing with some options. This dialog box is a message to inform users that they have not saved their work. the dialog box has a "Continue" and a "Cancel" button. The cancel button works but I can't get it to continue with the href.

$jquery('a').filter(function(){ return (
                      this.href.search("&APP_ID.:&APP_PAGE_ID.:") != -1 ||
                      this.href.search("CREATE") != -1 ||
                      this.href.search("CREATE_AND_CREATE_ANOTHER") != -1)})
        .click(function(){ $jquery("#CONFIRM").dialog({modal: true,
                              buttons : {
                                'Continue': function() {
                                    $(this).dialog('close');
                                 },
                              Cancel: function() {
                                    $(this).dialog('close');
                                 }
                              }
                        });
            return false;
         });