用于发布到我的网站的书签:使用 IFrame 或单独的浏览器窗口
在我正在开发的网站 Songfountain.com 中,我们有一个书签。
Songfountain 就像delicious 和twitter,只不过它是专门用于歌曲链接的。
Songfountain 书签的功能与美味书签和 Twitter 书签类似。它获取 URL 并将其复制到表单字段中;该表单有一个按钮,并提交到songfountain.com ->简单的社交书签。
Google Notebook(当它仍然可用时)也有一个书签。 Google Notebook 和 Songfountain 的小书签会在当前页面的 IFRAME 中打开表单。
Delicious 和 twitter 打开一个新的浏览器窗口。
打开一个新的浏览器窗口看起来更健壮,但我本人不喜欢为这样的“小东西”打开窗口。我不知道我是否忽略了一些我还没有遇到的技术问题。
问题:使用 IFRAME 更好吗?或者打开一个新的浏览器窗口更好?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从用户/可用性的角度来看,IFrame 通常具有较少的破坏性且更加用户友好。它也不会遇到用户计算机上的弹出窗口和广告拦截器的问题。
查看为 Google 阅读器用户提供的“阅读器中的注释”小书签以获取灵感。除了 IFrame 和弹出窗口之外,您可能还可以考虑其他技巧。
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.