[thelist] RE: Jacascript history redirect question (Jeff)

Tim Hansen tim at cybermsinc.com
Wed Apr 17 08:08:00 CDT 2002


Hey Jeff,

>what exactly are you trying to do?  are you perhaps trying to take a
request
>to a framed document and push it into frames if it's not already?

I have 50 websites pointing to the same backend.
The sites all have a "top_frame.html" nav bar.
I need to put a script in the top frame of the backend that will determine
the referring URL at a specific point in the history (-2) and load the
"top_frame.html" from that URL into the top frame of the new frameset.

i.e.   front end -------> login page -------> backend

       front end "top_frame.html" to load in backend - top frame

Thanks for the info & the link in your last post.

Tim


><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Tim Hansen
>
> Can anyone point me to a script that will select a
> single frame from a page in the browser history & load
> it into a specific frame in a new frameset.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

the last ten items in the user's history available in an array aptly named
"history".  for security purposes, the actions you can perform on the
history object are fairly minimal though.  you can read it's length --
history.length.  you can issue a redirect to a particular entry in the
history using the go() method.  you can call built-in methods on the history
object -- go(), back(), and forward().  however, for security purposes you
can't read or write the values at specific locations in the history.

alert(history[4]);

this would result in an alert() dialog with the value "undefined" in it.

read more about it here:

<http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/obj_histo
ry.asp>

what exactly are you trying to do?  are you perhaps trying to take a request
to a framed document and push it into frames if it's not already?

.jeff
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><





More information about the thelist mailing list