Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder mic2100's Avatar
    Join Date
    Feb 2006
    Location
    Scunthorpe
    Posts
    562
    Thanks
    15
    Thanked 28 Times in 27 Posts

    Question only one instance of window problems

    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.
    Last edited by mic2100; 07-04-2006 at 01:44 PM.

  • #2
    Regular Coder
    Join Date
    Aug 2005
    Location
    Toronto, ON, Canada
    Posts
    231
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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
    rm -f /


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •