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.
beetle
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
beetle
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 thisvar randNum = parseInt(top.location.search.substring(1));
I will work on that.
Thank You :thumbsup:
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.