Bookmarklet for posting to my site: use IFrame or separate browser window
In a site I'm working on, songfountain.com, we have a bookmarklet.
songfountain is like delicious and twitter, except it's specifically for song links.
The songfountain bookmarklet functions similarly to the delicious and twitter bookmarklets. It grabs the URL and copies it in to a form field; the form开发者_开发问答 has a button, and submits to songfountain.com -> simple social bookmarking.
Google Notebook (when it was still available) also had a bookmarlet. Google Notebook's and songfountain's bookmarklet open the form within an IFRAME within the current page.
Delicious and twitter open a new browser window.
Opening a new browser window looks more robust, but I myself don't like windows opened for "small stuff" like this. I don't know if I'm overlooking some technical problem that I haven't run into yet.
Question: Is it better to use an IFRAME? Or is it better to open a new browser window?
From a user/usability perspective, an IFrame is, generally, less disruptive and more user friendly. It also doesn't run into problems with pop-up and ad-blockers on the users' machine.
Look at the "Note in reader" bookmarklet that is provided to Google Reader users for inspiration. There may be other tricks you could consider, besides IFrame and pop-up.
精彩评论