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
    Dec 2003
    Posts
    51
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Passing variables to another page AND disabling the toolbar

    Passing variables to another page AND disabling the toolbar

    I know how to do both of the above seperately, but I haven't found a way to do them both together. To disable the toolbar and other features I use the following code:

    var Max = window.open('counter.htm', 'Max', 'top=0,left=0,height=600, width=800, toolbar=no,directories=no,status=no,scrollbars=no,resizable=no,menubar=no');





    To pass variables to another page I use the following code:

    function go(){
    var numb1=100;
    var numb2= 200;
    var numb3=300;
    location.href = "counter.htm?n1=" + numb1+ "&n2=" + numb2 + "&n3=" + numb3;
    }



    So far, I have not found a way to combine both features. Any ideas on how to do both?

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    hmmmm,,,,,,,

    function go(){
    var numb1=100;
    var numb2= 200;
    var numb3=300;
    locationURL = "counter.htm?n1=" + numb1+ "&n2=" + numb2 + "&n3=" + numb3;

    var Max = window.open(locationURL, 'Max', 'top=0,left=0,height=600, width=800, toolbar=no,directories=no,status=no,scrollbars=no,
    resizable=no,menubar=no');

    }
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #3
    New Coder
    Join Date
    Dec 2003
    Posts
    51
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thanks

    That took care of my problem. I am very happy. I found that I had to change it a little bit. I had to put in the "target=template". I'm not certain why, but it kept on coming up with an error without it.

    Again, thanks, your solution solved my problem.


    var target="template"
    var w = window.open(locationURL, target, "top=0,left=0,height=768, width=1024, toolbar=no,directories=no,status=no,scrollbars=no,resizable=no,menubar=no");


  •  

    Posting Permissions

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