Window Sizing

Discussion in 'ASP General' started by DVan, Oct 13, 2004.

  1. DVan

    DVan Guest

    Is there a way to set the window size on a
    <form action="add.ASP" method="POST">
    <input type="hidden" name="AComputer" value="<% =AC %>">
    This open in a full window

    I have this other way without using the form
    <input type="submit" value="ARecord" name="Add"
    onClick="window.open('add.asp','add','width=500,height=300')">
    This sizes it for me nice, but I can't pass the values I need.

    I want to pass AC and have the window size 500 X 300

    Is this possible?
     
    DVan, Oct 13, 2004
    #1
    1. Advertising

  2. Aaron [SQL Server MVP], Oct 13, 2004
    #2
    1. Advertising

  3. DVan

    TomB Guest

    You can set the target in the form tag.

    <form action="add.asp" target="_new" method="post">

    and in the add.asp page, have some javascript, resize the window after
    loading.

    TomB


    "DVan" <> wrote in message
    news:...
    > Is there a way to set the window size on a
    > <form action="add.ASP" method="POST">
    > <input type="hidden" name="AComputer" value="<% =AC %>">
    > This open in a full window
    >
    > I have this other way without using the form
    > <input type="submit" value="ARecord" name="Add"
    > onClick="window.open('add.asp','add','width=500,height=300')">
    > This sizes it for me nice, but I can't pass the values I need.
    >
    > I want to pass AC and have the window size 500 X 300
    >
    > Is this possible?
    >
    >
     
    TomB, Oct 13, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Fabrizio

    ASPX page sizing

    Fabrizio, Nov 27, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    340
    Teemu Keiski
    Nov 27, 2003
  2. Tim Marsden

    Sizing and positioning of dynamic controls

    Tim Marsden, Feb 25, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    2,985
    Steven Cheng[MSFT]
    Mar 2, 2004
  3. Daimajin

    Pop-up window sizing issue

    Daimajin, Nov 10, 2004, in forum: HTML
    Replies:
    18
    Views:
    733
    Toby Inkster
    Nov 11, 2004
  4. Ville Voipio

    wxPython and window sizing

    Ville Voipio, Sep 15, 2005, in forum: Python
    Replies:
    2
    Views:
    469
    Ville Voipio
    Sep 15, 2005
  5. Crunch Hardtack
    Replies:
    0
    Views:
    112
    Crunch Hardtack
    Jul 14, 2005
Loading...

Share This Page