Popup Goes Behind Current Window in Firefox
Mike Sances - February 25, 2008 - 20:57
| Project: | nodeformpopup |
| Version: | 5.x-1.0 |
| Component: | User interface |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
When using Firefox, the popup window will appear and then move behind the current window.
See this link: http://javascript.weblogsinc.com/2005/04/04/firefox-bookmarklets-and-hid...
The thread suggests using settimeout, but I am unsure how to implement that for this module. I know that the Facebook sharer.php bookmarklet uses settimeout as well:
javascript:var d=document,f='http://www.facebook.com/share',l=d.location,e=encodeURIComponent,p='.php?src=bm&v=4&i=1199292441&u='+e(l.href)+'&t='+e(d.title);1;try{if (!/^(.*\.)?facebook\.[^.]*$/.test(l.host))throw(0);share_internal_bookmarklet(p)}catch(z) {a=function() {if (!window.open(f+'r'+p,'sharer','toolbar=0,status=0,resizable=0,width=626,height=436'))l.href=f+p};if (/Firefox/.test(navigator.userAgent))setTimeout(a,0);else{a()}}void(0)However, copying the line with setTimeout and appending it to the bookmarklet on the mysite/bookmarklets page will "break" the bookmarklet link and cause it do do nothing.

#1
bump