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 1 of 1
  1. #1
    New Coder
    Join Date
    May 2009
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts

    auto resize window on form request (auto)

    I have a form typically, html that has an action of a .php url opening in "_blank" to catch data, I want that window that is being opened to automatically resize itself, I tried js with ...onClick='formCatcher();' ...ok when i use that js function instead of form submit action the window can resize itself like i want but the php page does not catch the data. So, is there a way to include code in the php page so that everytime the page is visited it resizes, or if not that then how?


    How about:
    <body onLoad="autoResizer();">

    function autoResizer() {
    ...a function to resize window?...
    }



    or this?:

    <form name=form1 method=post action=http://url.com/catcher.php target=myNewWin>
    <input type=text name=aNumber value='enter'>
    <input type=button value=' Submit ' nClick='sendme();'>
    </form>

    <script>
    function sendme()
    {
    window.open("","myNewWin","width=500,height=300,toolbar=0");
    var a = window.setTimeout("document.form1.submit();",500);
    }
    </script>

    </body>


    i HAVE RESOLVED THIS PROBLEM BUT THANKS!
    Last edited by druss016; 06-18-2009 at 01:59 PM. Reason: -Solved-


 

Posting Permissions

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