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:
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
Code:
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,fullscreen=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.