Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback on: Re-directing access within Frames #2, November 05, 1998 at 09:11:18:

You are here: irt.org | About | Feedback | 44 [ previous next ]

Feedback on:
Re-directing access within Frames #2

Sent by
Michel Plungjan on November 05, 1998 at 09:11:18:Just a quick glance...

You should warn that location.search is empty in IE3 if the page is loaded from harddisk.

Netscape dislikes the lack of http://....../ in the statement

top.location.href = 'myframe.htm?' + self.location.href;
and it is also not correct syntax.

top.location.href = 'myframe.htm' is ok syntax
but you are setting both href AND search in one go so in my
opinion the following is better:

h = location.href;
(p=h.lastIndexOf("/")) > 0 ? homedir=h.substring(0,p+1) : homedir = ""; // also usable with the opera replace

top.location.href = homedir + 'myframe.htm?' + self.location.href;

and the opera (or just use it as default) would be
location.replace(homedir + 'newpage.htm')

I am not going to go into the danger of document.write('<FRAMESET...>') but both IE and Netscape 16 bit HATES that!

Michel

Other feedback on 'Re-directing access within Frames #2' - show all

©2018 Martin Webb