Click to See Complete Forum and Search --> : Menu Search Form/New Window


John
12-09-2002, 01:26 PM
My menu search form trawls a database at a remote URL:

form name="form1" onsubmit="return checkit()" action=http://remote.asp?StoreURL=mystore method=get>
<div align="center"><b><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input type="hidden" value="myvalue" name="storeurl">
<font color="#0066FF">SEARCH BY</font></font></b>
<select name="searchby">
<option value="name">Name</option>
<option value="place">Place</option>
<option value="content">Keyword(s)</option>
<option value="country">Country</option>
</select>
<input name="searchbycriteria" size="25">
<input type="image" src="../mainpix/Go.gif" width="25" height="28" align="bottom" name="submit">
</div>
</form>

That works fine but I'd prefer the search results page generated to open in a new window, say 650 x 350, so that the form page remains visible behind it. Any ideas much appreciated.

Zach Elfers
12-09-2002, 01:36 PM
Here is JavaScript code to open a new window, but since I can't see the JavaScript code that you are using so you will have to add this:

function newWin() {
newWin = window.open("","","width=650,height=350,resizable=yes,meubar=yes,toolbar=yes,status=yes,location=yes");
newWin.focus();
}