The table below describes an inconsistancy agains Popup blocking in thumbnailbuttons compared to two other security models. You may click on the buttons to try the tests for your self.
Pop Up to Current Domain | Pop Up to Another Domain | |
Via a direct click | ||
Via setTimeout | (Permitted in siteMode... ?) | |
Via thumbnail buttons (these buttons are inactive please see the thumbnail buttons) |
So this wont work...
// Trigger popup, user-initiated event
// Popup, will work
pin.button('http://facebook.com/favicon.ico','Toggle Play',function(i){
window.open("http://facebook.com", 'Popup', 'width=100,height=100');
});
But this will work...
/**
* Trigger popup, user-initiated event
* Popup, will work
*/
pin.button('http://facebook.com/favicon.ico','Hide Me',function(i){
window.open("./redirect.php?location="+encodeURIComponent("http://facebook.com"), 'PopupPlay', 'width=100,height=100,resize=1');
});
<?php header('Location: '.$_GET['location']); exit; ?>