Window Sizing

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DVan

    Window Sizing

    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=5 00,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?


  • Aaron [SQL Server MVP]

    #2
    Re: Window Sizing

    You could switch to GET instead, and use
    window.open('ad d.asp?AComputer =<%=AC%>', ... , ...);

    Or see http://www.aspfaq.com/2353

    --
    Please contact this domain's administrator as their DNS Made Easy services have expired.

    (Reverse address to reply.)


    Comment

    • TomB

      #3
      Re: Window Sizing

      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" <dthmtlgod@yaho o.com> wrote in message
      news:ujlxCwSsEH A.2456@TK2MSFTN GP10.phx.gbl...[color=blue]
      > 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=5 00,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?
      >
      >[/color]


      Comment

      Working...