SN--
Yes, funny I read this after figuring out a solution. As
a good computing.net "asker" I posted some of my
answer below. The question and concept is a bit
confusing to explain, but I did get the desired results
(well, maybe not...see follow up).
---------------
<html>
<head>
<title>ASA Registration</title>
<script language="JavaScript">
var loadedPage="0";
var loc = new Array();
var messageShown="false";
var onlineBuy="false";
function openUrls() {
if(loadedPage<loc.length) {
parent.buyWindow.location=loc[loadedPage];
loadedPage++;
}
if(loadedPage==loc.length && loc.length>0 &&
loadedPage>0 && messageShown=="false" &&
onlineBuy=="true"){
alert("all items loaded into cart");
window.open("purchasepage.php");
messageShown="true";
}
}
</script>
</head>
<frameset rows="0,*">
<frame src="buy.html" name="buyWindow"
onLoad="parent.openUrls()" NORESIZE>
<frame src="main.php" name="mainWindow">
</frameset>
</html>
---------------
I had trouble with the concept of how to set the loc
variable (the page) while at the same time increment
a global variable. So, when the appropriate action
took place in the mainWindow, I reset the 'loc'
variable to an array of sites....triggered the
buyWindow to reload.....then buyWindow was in a
loop until all the sites were read because I used the
parent frame variable 'loadedPage' which held it's
incremented value everytime it was accessed.
Anyway, it works on the majority of browsers used
now. However, how would I go about making this
cross-browser functional? Any ideas?
Thanks for the help!