I am not writing out the full code for you, because there is a lot of code involved in that. But I will give you the basics. It is called a message element. You can pass a message element to the parent window in the frame with a table. Then you would pass another message element from parent window to the child window with the list.
Unfortunately, the only spots I have in production with that going on is on websites that you have to be logged in to view. And my playground server is not viewable to the outside world. Otherwise I would show you a working example and let you steal the code from me, or at least get a good idea as to how it works.
See if you place the 2 sets of code listed below in 2 files if you can get it to work together,
<html>
<head>
<meta charset="UTF-8">
<title></title>
<script>
window.onload = function () {
var iframeWin = document.getElementById("da-iframe").contentWindow,
form = document.getElementById("the-form"),
myMessage = document.getElementById("my-message");
myMessage.select();
form.onsubmit = function () {
iframeWin.postMessage(myMessage.value, "http://localhost/payground/");
return false;
};
};
</script>
</head>
<body>
<form id="the-form" action="/">
<input type="text" id="my-message" value="Your message">
<input type="submit" value="postMessage">
</form>
<iframe id="da-iframe" src="frame.php"></iframe>
</body>
</html>
Next bit should go in same directory named frame.php
<html><head>
<script>
function displayMessage (evt) {
var message;
if (evt.origin !== "http://localhost") {
message = "You are not worthy "+evt.origin;
}
else {
message = "I got " + evt.data + " from " + evt.origin;
}
document.getElementById("received-message").innerHTML = message;
}
if (window.addEventListener) {
// For standards-compliant web browsers
window.addEventListener("message", displayMessage, false);
}
else {
window.attachEvent("onmessage", displayMessage);
}
</script>
</head>
<body>
<div id="received-message">I heard nothing yet</div>
</body>
</html>
I hope that is enough that you can figure out the details as to what you want to do.