Open framed html and target frame
I have html pages that are run from the local harddrive and interact with a backend SCO Unix server. In some pages I store filenames to be used as bookmarks. Just for reference, here is the code that stores the bookmark...
<script language="JavaScript">
var totalscore = "0";
var lesson = "AP_LES";
var filename = document.location.href;
filename = filename.substr(filename.lastIndexOf("/") + 1);
filename = "lessons/ap_les/" + filename;
SaveLesson(lesson,filename,totalscore);
</script>
I have a link to take the end user back to that bookmark. Unfortunately, the page that is saved is contained within a frameset.
Here is my code that opens up a bookmarked page...
<script language="JavaScript">
if (lessonlink == "")
{
document.write("Try out our self-paced lessons to get up to speed quickly on your software.");
}
else
{
document.write(sUser + ", would you like to <a href=javascript:// onclick=window.open(lessonlink)>visit</a> where you last left off?");
}
</script>
Here is my problem...the page opens just fine using the filename I am saving, but I need it to open up within the main frame of my frameset. Does anyone know how to do this? How can I open up a frame set and target one of the frames with a variable that stores a filename as it opens?
Clay Hess
__________________
Clay Hess
|