[Javascript] Move to a name in frame

Nick Fitzsimons nick at nickfitz.co.uk
Wed Oct 5 07:52:45 CDT 2005


>I have been using:
>
>self.parent.middle.location = self.parent.middle.location;
>
>to refresh the page which works fine. I already know the new ID of the
>record, so I
>now need to go to that  after the frame has refreshed.

Try:

var recordID = "fred";

self.parent.middle.location.reload();
self.parent.middle.location.hash = recordID;

using ASP to put the record ID in wherever it's appropriate - you could
just use

self.parent.middle.location.reload();
self.parent.middle.location.hash = "<%=recordID%>";

if you wanted.

HTH,

Nick.
-- 
Nick Fitzsimons
http://www.nickfitz.co.uk/




More information about the Javascript mailing list