IE7 中的目标属性

发布于 2024-07-10 13:55:31 字数 395 浏览 8 评论 0原文

我们有一些网页有两个框架,其中一个框架位于 IE 6 搜索栏中(使用 open("path.htm", "_search"); 调用创建)。 搜索栏框架中显示的页面包含按钮,单击这些按钮我们会更新右侧框架。 迁移到 IE 7 时,两个框架都在自己的窗口中打开,即我现在打开了两个窗口。

在网上搜索时,我发现出于安全考虑,IE 7 已经禁用了 IE 搜索栏。 我想这是因为他们现在将搜索文本框移至右上角,à la Firefox。

我的问题是,我仍然需要这两个框架。 那么我应该做什么 - 我一直在考虑使用 标签,但只是想我应该发布到社区看看还有什么其他选择。

注意:我确实搜索了互联网,但无法真正想出其他选择。

We have some web pages which have two frames, with one frame in the IE 6 search bar (created using the open("path.htm", "_search"); call). The page shown in the frame on the search bar contains buttons, on click of which we update the right frame. On migration to IE 7, both frames open in their own windows, i.e, I now have two windows open.

On searching the Net, I found that IE 7 has disabled the IE search bar because of security concerns. I guess this is because they now have moved the search text box to the top right, à la Firefox.

My question is, I still need the two frames. So what should I do - I have been toying with the idea of using <frameset> tags, but just thought I'd post to the community to see what other options there are.

NOTE: I did search the Internet, but couldn't really come up with other options.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

向地狱狂奔 2024-07-17 13:55:31

确实没有 - IE6 搜索栏显然永远无法跨浏览器工作,所以
如果您坚持使用框架,您的选择是框架集和 iframe。

我建议的一个更好的选择是简单地将您拥有的任何搜索内容放入同一个页面中,它看起来只是像另一个框架,然后让 ajax(降级为无脚本的页面重新加载)进行搜索和响应处理更改页面的其余部分,但这取决于搜索的性质。 你能解释一下吗?

None really - the IE6 search bar would obviously never have worked cross-browser anyway, so
if you insist on frames your choices are frameset and iframe.

A better option I would suggest would be to simply put whatever searching content you have into the same page where it merely looks like another frame and let ajax (degrading to page reloads for noscripts) do the search and response handling to change the rest of the page, but this depends on exactly what the nature of the searches is. can you explain more?

世态炎凉 2024-07-17 13:55:31

有几个选项& 优点和缺点。

1.) 如果您尝试使用页面缩放功能,IE7(及更高版本)中的 会严重失败。

2.) 不允许任何内容悬停在或逃离框架的边界(例如菜单、日历等将在框架集边框下滑动,而不是在上方)

因此我个人发现如今的框架集相当笨重且无用。

我建议的是一个包含所有“搜索框架”内容的页面(例如称为index.html),以及在右侧加载内容的大型 。 这将解决您的问题,而不会陷入太多麻烦。

+--------------------+
|      +------------+|
|      |            ||
|      |  iframe    ||
|      |            ||
|      |            ||
|      +------------+|
+--------------------+

总而言之,如果您可以让当前的“静态”右侧页面仅提取内容,这将是“搜索框架”内容,这会更好,因为您不会失去添加书签等的能力。

您是吗?可以在这里使用服务器端语言吗? 例如,PHP 或类似的方法只需使用 require_once('left_buttons'); 类型调用即可使此任务变得非常简单。

There are a few options & pros and cons.

1.) <frameset>'s in IE7 (and above) fail horribly if you attempt to use the page zoom feature.

2.) <frameset>'s do not allow any content to hover over or escape the frame's boundary (e.g. menus, calendars, etc. will slide under frameset borders, not over)

Thus I personally find framesets rather bulky and unhelpful these days.

What I would suggest, is one page (call it index.html say) that contains all your "search frame" content, AND a large <iframe> on the right that you load content into. This will solve your issue without getting into too much trouble.

+--------------------+
|      +------------+|
|      |            ||
|      |  iframe    ||
|      |            ||
|      |            ||
|      +------------+|
+--------------------+

That all said, if you can have your current "static" right side pages just pull in content, that would be the "search frame" content, this would work better, as you wouldn't lose the ability to bookmark etc.

Are you able to use a server side language here? e.g. PHP or similar would make this task very simple just using a require_once('left_buttons'); type call.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文