Forms and popups

Results 1 to 2 of 2

Thread: Forms and popups

  1. #1
    Join Date
    Dec 1969

    Default Forms and popups

    Hi,<BR><BR>I am trying to pass the info from a form to a pop up. using a window open script in the button tag does not allow the info to be passed on and when I use <BR>&#060;form method="post" action="Calc1.asp" &#062;<BR>at the beginning of the form, the pop up is ignored and the page that opens (Calc1.asp) is normal size.<BR>Help!<BR><BR>Thanx

  2. #2
    Join Date
    Dec 1969

    Default <FORM Target=popupName>

    To target a form to another window, you must use the TARGET= property of the &#060;FORM&#062; tag.<BR><BR>Now, the problem with using *JUST* TARGET= is that it will pop the new window up as a "clone" of the current window (same size, same scrollbars, etc., etc.).<BR><BR>If you want finer control than that, such as controlling the window height and width, then you can pull a "trick":<BR><BR>&#060;FORM Name=Whatever Target="MyPopup" Action="Calc1.asp"<BR> onSubmit=";&#039;,&#039;MyPopup&# 039;,&#039;height=300,width=600&#039;); return true;" &#062;<BR><BR>See that? *Before* the submit actually happens, you open a *blank* window with the right name and the right characteristics. Then the form will post to that blank window, and all works as you want it to!<BR><BR>

Posting Permissions

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