[thelist] Frames, Javascript and IE 5.5 continued....
Katherine Spice
k.spice at acu.ac.uk
Mon Jul 23 05:12:18 CDT 2001
".jeff" wrote:
> probably cause you're not referencing it correctly. if you want the browser
> to initiate a page change, then you need to change the href property of the
> location object.
>
> parent.framename.location.href = '/dir/page.html';
and Peter-Paul Koch added:
> I used to think so too, but I just tested it and found no difference at all
> between location and location.href: both work fine in IE5.5
Peter's right - I've just tried this and had no joy at all :-(
Any other ideas? (please :-)
Katherine
PS - If you want to see the page/frame layout go to
http://www.acu.ac.uk/cgi-bin/frameset.pl?ml=aboutacu&sl=aboutacu&select=aboutacu
but I didn't submit this last time on purpose, because (a) it's such a
mess there's no way I can explain it! and (b) there's another problem
with the javascript - which I found whilst trying to fix this - the
value of selectedIndex should be an integer, and this script treats it
as a string - I've changed this on my test site, but it still doesn't
work.
I've taken this code apart so far as to hard code in a href, and stuck
alert boxes in to confirm that the browser is even entering the function
and it comes down to this line: parent.framename.location.href =
'/dir/page.html';
Original problem:
> :~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> : From: Katherine Spice
> :
> : Can anybody tell me why the following
> : snippet of javascript (which works with
> : NN 2-6, Mozilla, and IE 3-5) won't work
> : with IE 5.5?
> :
> : parent.framename.location = "/dir/page.html";
> :~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
More information about the thelist
mailing list