I’m using a jquery-ui dialog although I could switch to fancybox or colorbox, etc if I had to. My chrome plugin content-script opens this dialog on page load. In jquery-ui, a div that the box was attached to is moved into the body of the current page. If the user clicks a link on the page I would like that box to stay open instead of re-opening once the new page loads, as if it is associated more with the browser than with the actual page you are on. This may be possible by framing the page and having the box be in another frame but I doubt that this will work on many sites. Any ideas?
I’m using a jquery-ui dialog although I could switch to fancybox or colorbox, etc
Share
I’m going to answer this myself. The only thing I have found that qualifies as able to persist a content-script created div / iframe is an experimental feature in chrome called panels. For now this feature must be enabled through the
chrome://flags page:
“panel” can be specified as the window type as seen here:
http://code.google.com/chrome/extensions/windows.html#type-Window
If the panels experimental feature is not enabled in chrome, a new window popup will be used by default.