Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Senior Member
    Join Date
    Sep 2003
    Location
    Sydney
    Posts
    114
    Member #
    3051
    Gday,

    At the moment I have a form which searches for flights from and to cities selected by a user + the dates. This calls on a external form from a 3rd party.

    What I would like to do is to produce the results in a new window.

    I know you can do target="_blank", but is there a Javascript way to do it? I'd like to be able to control the size of the window.

    This is the code at the moment to keep it in the same window:

    HTML Code:
    <form method="POST" action="http://book.openfares.com/?engine=gway38&a=air" name="farerequest" onSubmit="return request_validation();">
    
    <input name="submit" type="submit" class="formtext" value=Search>
    Thanks.

  2.  

  3. #2
    Senior Member
    Join Date
    Sep 2003
    Location
    Sydney
    Posts
    114
    Member #
    3051
    In case someone finds this down the track, I achieved it by:

    HTML Code:
    <script language="JavaScript"><!--
    function myOpenWindow() {
        myWindowHandle = window.open('http://book.openfares.com/?engine=gway38&a=air','Book','width=790,height=700,scrollbars=yes,resizeable=yes,status=yes');
    }
    //--></script>
    HTML Code:
    <form method="POST" action="http://book.openfares.com/?engine=gway38&a=air" name="farerequest" target="Book" onSubmit="myOpenWindow()">
    
    <input name="submit" type="submit" class="formbox" value=Search>
    :squareeyed:


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 11:49 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com