Best Collegue,
i've created a bookmarklet for IE and bumped against the following problem. When the user drag my bookmarklet in bookmarklet toolbar and click on it IE shows a dialog if the user want to allow the popup. But Pinterest made it possible to avoid this can someone tell me how pinterest find a solution to that problem?
my extern js file looks like:
function Bookmarker(){
initialize();
}
function initialize(){
var url = document.location.href;
loadBookMarkLet(url);
}
function loadBookMarkLet(url) {
newwindow = window.open('http://bookmarker.symbaloo.com/?url='+encodeURIComponent(url),'Bookmarklet','toolbar=no,width=550,height=330,left=500,top=200, status=no,scrollbars=no,resize=no');
setTimeout(function() {
newwindow.focus();
}, 0);
}
new Bookmarker();
my index.html files looks like:
<a href="javascript:(function(){script=document.createElement('SCRIPT');script.type='text/javascript';script.src='http://navidmirzaie.com/bookmarklet/default.js?x='+(Math.random());document.getElementsByTagName('head')[0].appendChild(script);})();" icon="bookmarker_icon.ico">Symbaloo Bookmarklet</a>
I would be very gratefull.
Tnx in advanced.