title: jquery pop ups after jquery confirmation
body: <p>I am having a confirmation box after clicking on the "Delete " link in the jsp. Now the problem is that the success deletion page is showing in the same window.</p>
  
  <p>I would like to show it in a pop up window.</p>
  
  <p>I tried to use the javascript onclick(), but it is not wotking. So, how can I do that?</p>
  
  <pre><code>&lt;script type="text/javascript" src="jquery-1.4.2.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="jconfirmaction.jquery.js"&gt;&lt;/script&gt;
  
  
  &lt;script type="text/javascript"&gt;
  
              $(document).ready(function() {
  
  
                  $('.ask-plain').click(function(e) {
  
                      e.preventDefault();
                      thisHref    = $(this).attr('href');
  
                      if(confirm('Delete this record?')) {
                          window.location = thisHref;
                      }
  
                  });
  
                  $('.ask-custom').jConfirmAction({question : "Anda Yakin?", yesAnswer : "Ya", cancelAnswer : "Tidak"});
                  $('.ask').jConfirmAction();
              });
  
          &lt;/script&gt;
  
  &lt;meta http-equiv="content-type" content="text/html; charset=utf-8" /&gt;
  
  
  &lt;SCRIPT TYPE="text/javascript"&gt;
  &lt;!--
  function popup(mylink, windowname)
  {
  if (! window.focus)return true;
  var href;
  if (typeof(mylink) == 'string')
     href=mylink;
  else
     href=mylink.href;
  window.open(href, windowname, 'width=750,height=430,scrollbars=no');
  return false;
  }
  //--&gt;
  &lt;/SCRIPT&gt;
  
  ---Delete image
  &lt;td  width="3%" align="left"&gt;&lt;a href="cir_delete.jsp?cir_id=&lt;%=rs.getString("cir_id")%&gt;" class="ask"&gt;&lt;IMG SRC="12.png" ALT="Delete" BORDER="0"&gt;&lt;/a&gt;&lt;/td&gt;
  </code></pre>
  
  <p>Thanx</p>