2011-11-01 3 views
0

내가 다시 후 성공적으로 게시 (here에서)를 jTweetsAnywhere 코드의 사용는 jTweetsAnywhere 포스트 후 성공 페이지로 리디렉션 할 필요

내가 리디렉션을 활용할 수 있도록하려면

번 페이지가 온다 만드는 페이지가 트윗. 누구든지 코드를 공유하기 위해 그런 일을하고 신경을 썼습니까?

다음은 현재 코드입니다. 여기에 함수를 추가하겠습니까?

<div id="tweetbox"></div> 
<script type="text/javascript"> 
    $('#tweetbox').jTweetsAnywhere({ 
     showTweetBox: { 
     counter: false, 
     width: 500, 
     height: 60, 
     label: '', 
     defaultContent: '#MyTest http://stackoverflow.com' 
     } 
    }); 
</script> 

답변

1

그것은 OnSubmitted 기능을 가지고

<script type="text/javascript"> 
    $('#tweetbox').jTweetsAnywhere({ 
     showTweetBox: { 
     counter: false, 
     width: 500, 
     height: 60, 
     label: '', 
     defaultContent: '#MyTest http://stackoverflow.com', 
     onTweet: function(textTweet, htmlTweet){ 
      //tweet send succes 
      window.location.href = "newurl.html" 
     } 
     } 
    }); 
</script> 
관련 문제