title: popup window blocked in ajax success handler
body: <p>I am trying to open a popup window to allow a user to authenticate with twitter without having to leave the page they are viewing. I have seen this technique used around the web, particularly with the Disqus commenting application. However, I am only able to get two results, either a 'Popup window blocked' message or nothing even happens. </p>
  
  <p>I have tried using the approaches outlined <a href="http://swip.codylindley.com/popupWindowDemo.html" rel="noreferrer">here</a> and <a href="http://www.codebelt.com/jquery/open-new-browser-window-with-jquery-custom-size/" rel="noreferrer">here</a>. How can I fix this?</p>
  
  <p>My code currently looks like:</p>
  
  <pre><code>var windowSizeArray = [ "width=200,height=200",
                              "width=300,height=400,scrollbars=yes" ];
  var url = $('.twitter_popup').attr("href");
  var windowName = $('.twitter_popup').attr("name");
  var windowSize = windowSizeArray[$('.twitter_popup').attr("rel")];
  window.open(url, windowName, windowSize);
  </code></pre>