当用户使用 DotNetOpenAuth 使用 facebook 或 twitter 登录时,我正在尝试打开一个模式窗口(jQuery colorbox)。我用 jQuery 写了一篇文章,但我不知道为什么我没有回复。
这是 HTML
<form returnurl="" action="/account/externalLogin" id="ExternalLogin" method="post" novalidate="novalidate">
     <fieldset id="socialLoginList">
          <legend>Log in using another service</legend>
               <p>
                    <button type="submit" name="provider" class="lightbox" value="twitter" title="Log in using your Twitter account">Twitter</button>
                    <button type="submit" name="provider" class="lightbox" value="facebook" title="Log in using your Facebook account">Facebook</button>
               </p>
     </fieldset>
</form>
这是我的javascript
$("#ExternalLogin").submit(function () {
     $.post($(this).attr("action"), $(this).serialize(), function (data) {
          alert(data);
     }, 'html');
     return false;
});
我从来没有收到来自 $.post 的回复。我在做什么坏事?