In general, you can't do that. Mozilla, for instance, won't save the contents by default. Nor I would guess will other Moz based browers.
(Not sure if the JUG List members want this kind of discussion here (I'm new to the list myself). Mail me offline if you want. )
However, you may be able to work around the problem. To get you started, consider the following frameset:
<html>
<head>
<script language="javascript">
function setframe()
{
var f2=document.getElementById("f2");
if ( location.search )
{
f2.src = location.search.substring(1);
}
}
// might put this at the bottom of the body of (frame f1) frameA.html
top.window.setTimeout('setframe()',500);
</script>
</head>
<frameset cols="50%,50%">
<frame id="f1" src="frameA.html" name="nav" />
<frame id="f2" src="frameB.html" name="display" />
</frameset>
</html>
The example works by taking a URL of the form: http://somedomain/theframeset.html?frameBbody2.html
where frameBbody2.html is a page you want loaded into the second frame. frameBbody2.html is then loaded by waiting a time so the frameset is parsed, then placing it into the location of frame f2.
Such a url can be bookmarked, and thus solves the immediate problem.
Placing this into use, you may want to move the settimeout to the end of whatever document is inside of frame 1. That way, you face less risk of delayed downloading of "frameA.html" or "frameB.html", or of parsing those documents, from exceeding the timeout delay.
This frameset is assumed to be running in a browser that supports DOM; older browsers will use other access methods to get at the frames. You will probably need to use good browser sniffing techniques to work it into a generalized solution. Also, I haven't bothered to consider security issues. Caveat Emptor.
- Mitch
Kevin Bennett wrote:
Does anyone know how I can create a link to a frameset page and have one frame contain a page other than the default for that frame? I'd like to be able to send people a link directly to particular sections of my website, but I'm using frames for navigation for the site. If I create a bookmark on the frameset with a non-default page in one of the frames, the bookmark works correctly. I can't figure out how it's doing it, even looked through the bookmark itself.
TIA,
Kevin
------------------------------------------------------------------------
Do you Yahoo!?
Free online calendar <http://us.rd.yahoo.com/mail_us/tag/*http://calendar.yahoo.com> with sync to Outlook(TM).
_______________________________________________ Juglist mailing list [EMAIL PROTECTED] http://trijug.org/mailman/listinfo/juglist_trijug.org
