View Full Version : Data Transfer Between Windows
Having two popup windows and a main window how is it possible to tranfer data from the main window into the popups and possibly from the popups to the main window.
08-19-2002, 10:48 PM
Depeding on the type/nature/quantity of data, you have limited options. Using cookies may be the best way.
What are you trying to accomplish?
I require that the results from a number generator are viewed in a popup
08-19-2002, 10:54 PM
Well, if you are calculating the value in opener, you can pass the value to the popup with the query string (or search string)
var randNum = Math.floor(Math.random() * 100); // Or whatever
var nUrl = 'popup.htm?' + randNum;
window.open(nUrl,'',''); then, in the popup, get the number like this
var randNum = parseInt(top.location.search.substring(1));
I will work on that.
Thank You :thumbsup:
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.