...

View Full Version : only one instance of window problems



mic2100
07-04-2006, 11:56 AM
I have some links that open a window, when this window is open various php processes are carried out and it sets serveral global variables. The problem i am having is users, you can't just tell them to have one instance of the window open you have to enfore that rule and i am having a problem doing that.

i have this code:


function launch(newURL, newName, newFeatures, orgName) {
var remote = open(newURL, newName, newFeatures);
if (remote.opener == null)
remote.opener = window;
remote.opener.name = orgName;
return remote;
}

and this function is called upon by another function


function launchInsulation(){
myRemote = launch("insulation/applicant_Isulationconfirmations.php", "myMainWindow", "height=700,width=1000,screenX=0,left=0,screenY=0,top=0,channelmode=0,dependent=0,directories=0,fulls creen=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0", "SJM Surveys Ltd");
}

The problem is that the window will keep creating a new instance of its self and writing over the required global variable (this is posing a bit of a problem).

I can however get this to work locally on my own testing server but as soon as i load it to the main server the code no longer works.

rm-f
07-08-2006, 05:54 PM
The problem i am having is users, you can't just tell them to have one instance of the window open you have to enfore that rule and i am having a problem doing that.

sessionId on the server, move from stateless to state logic



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum