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 3 of 3
  1. #1
    New Coder
    Join Date
    Mar 2004
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    passing vars between windows

    Please help ma to solve this problem with Mozilla…
    A have a code which works fine in IE and don’t work in Mozilla.
    My code has to pass variables from window to window.
    On the first window the code runs like tgis
    Code:
    function UserID(url) {
    	srchString = "T209753d1";
      url += "?" + escape(srchString);
      location.href = url;
    }
    On the second window I have this snippet to read data from the first window
    Code:
    function readData( ) {
    var srchString = unescape(location.search.substring(1, location.search.length));
    document.forms[0].hiddenfield.value= srchString;
    }
    What should be done in order that this code works also for Mozilla?
    Thank you very much…..

  • #2
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try document.location or window.location

  • #3
    New Coder
    Join Date
    Mar 2004
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you Willy.
    I figured it out.....
    All I had to do is to clear cache....


  •  

    Posting Permissions

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