0
我想打開一個彈出與URL說對FB API的點擊http://google.com ..如何打開FB登錄/註冊點擊彈出?
是否有可能...
這裏是我的一段代碼,我想開一家自己的彈出隨着FB登錄。
我試過下面的代碼。但彈出式窗口在IE中被阻止。
請幫忙。
function fac(){
openPopup();// my function which opens pop up
FB.login(function(response) {
if (response.authResponse) {
FB.api('/me', function(response) {
document.getElementById('fbEmail').value=response.email;
document.getElementById('fbId').value=response.id;
document.getElementById('fbFirstname').value=response.first_name;
document.getElementById('fbLastname').value=response.last_name;
document.getElementById('fbGender').value=response.gender;
document.getElementById('birthday').value=response.birthday;
//openPopUp();
loginRegisterFB();
});
}
}, {scope: 'email'});
window.open('http://google.com', 'applyurljob', 'height=550, width=800,toolbar=no, directories=no, status=no, menubar=no,scrollbars=yes,resizable=yes,left=200, top=250');
HI亞當...感謝您的回覆...簡單....我想打開兩個彈出窗口單擊..是thhis可能....否則讓我知道如果它是possilbe打開加載彈出窗口(不受任何瀏覽器的彈出窗口阻止).. 請幫助.. – 2012-03-10 04:59:30
由於安全限制,不可能。我會建議你重新考慮你的方法。彈出窗口令人討厭,不遵循任何設計良好的UI接口或流程。人們喜歡一次一件地拿東西。保持這種方式。 – 2012-03-11 06:00:34