2012-12-05 1 views
1

DotNetOpenAuth로 페이스 북이나 트위터로 로그인하는 사용자가 모달 윈도우 (jQuery colorbox)를 열려고합니다. jQuery를 사용하여 게시물을 작성하고 있지만 응답이없는 이유를 알 수 없습니다. MVC DotNetOpenAuth with colorbox

절대로 내가 $ .post의 응답이없는 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> 

그리고이 내 자바 스크립트

$("#ExternalLogin").submit(function() { 
    $.post($(this).attr("action"), $(this).serialize(), function (data) { 
      alert(data); 
    }, 'html'); 

    return false; 
}); 

입니다. 내가 나쁘게하는거야? 당신이 당신의 오류 메시지를 읽는하여 확인할 수 있습니다 - 당신이 MVC에서 당신이 [ValidateAntiForgeryToken] 속성을 가지고 ExternalLogin 타격됩니다 4 개 프로젝트를 함께 제공되는 표준 계정 컨트롤러를 사용하는 경우

답변