The Target Attribute in IE7

We have multiple web pages that have two frames, with one frame in the IE 6 search bar (created with a call open("path.htm", "_search");

). The page shown in a frame in the search bar contains buttons that we click to update the right frame. When switching to IE 7, both frames open in their own windows, which means I now have two windows open.

While searching the net, I found that IE 7 disabled the IE search bar due to security issues. I'm guessing this is because they have now moved the search text box to the top right corner, in Firefox.

My question is that I still need two frames. So what should I do? I played around with the idea of ​​using tags <frameset>

, but just thought I'd post to the community to see what other options exist.

NOTE. I actually searched the web but couldn't find any other options.

0


source to share


2 answers


No really - IE6's search bar would obviously never work cross-browser anyway, so if you insist on frames, your choice is a set of frames and an iframe.



The best option I would suggest would be to just put any searchable content on the same page where it just looks like a different frame, and let ajax (aggravate page reloads for noscripts) do the search and process the responses to change the rest of the page but that depends on what the nature of the search is. can you explain more?

0


source


There are several options and pros and cons.

1.) <frameset>

in IE7 (and up) fails if you try to use the page zoom feature.

2.) <frameset>

do not allow content to hang or go outside of the frame (e.g. menus, calendars, etc. will slide below the borders of the frames, not above)

As such, I personally find that framesets are pretty cumbersome and useless these days.



I would assume that this is one page (call it index.html) containing all of your searchframe content, and a large one <iframe>

on the right where you upload content. This will solve your problem without getting into too big problems.

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

      

All that being said, if you can have your current "static" right pages, just pull the content, this will be the "search frame" content, this will work better since you won't lose the ability to bookmark, etc ..

Can you use a server-side language here? for example PHP or similar can make this task very easy simply by using a type call require_once('left_buttons');

.

0


source







All Articles