[thelist] asp - form with window.open() function

Brian Delaney brian.delaney at mccmh.net
Mon Jul 19 11:36:29 CDT 2004


Here is some background code:

I have this function in the <head></head> tags

function new window()
{
window.open('directory_results.asp','dr','width=790,height=500,centered=true,scrollbars=yes','return 
false');
}


I have this form that returns a list of members of the department 
selected on same page:

<FORM METHOD="post" NAME="AgencyForm" action="staff_directory.asp">
<TABLE>
<TR><TD width="134">Location(Department)</TD><TD><SELECT NAME="agency" 
onchange=AgencyForm.submit()>
<OPTION SELECTED VALUE="<%=request.form("agency")%>"></OPTION>
<OPTION value="Access Center">Access Center</OPTION>
<OPTION value="ACT/Ventures">ACT / Ventures</OPTION>
<OPTION value="Administration">Administration</OPTION>
<OPTION value="Clinical Records">Clinical Records</OPTION>
<OPTION value="Crisis Center">Crisis Center</OPTION>
<OPTION value="Crossroads Clubhouse">Crossroads Clubhouse</OPTION>
<OPTION value="CSS">CSS</OPTION>
<OPTION value="EHS">EHS</OPTION>
<OPTION value="First Res. & Trtmt - N">First Res. & Trtmt - N</OPTION>
<OPTION value="First Res. & Trtmt - SE">First Res. & Trtmt - SE</OPTION>
<OPTION value="First Res. & Trtmt - SW">First Res. & Trtmt - SW</OPTION>
<OPTION value="EHS">EHS</OPTION>
<OPTION value="MCOSA">MCOSA</OPTION>
<OPTION value="OBRA">OBRA</OPTION>
<OPTION value="ORR">ORR</OPTION>
<OPTION value="VerKuilen Bldg.">VerKuilen Bldg.</OPTION>
<OPTION value="VerKuilen Bldg. - Suite 1">VerKuilen Bldg. - Suite 1</OPTION>
<OPTION value="VerKuilen Bldg. - Suite 2">VerKuilen Bldg. - Suite 2</OPTION>
<OPTION value="VerKuilen Bldg. - Suite 5">VerKuilen Bldg. - Suite 5</OPTION>
</TD></TR></SELECT></TABLE>
</FORM>


I would like th results sent to the new window instead of the current 
page. Any ideas?

thanks

>  
>

*
*
*
This message, including any attachments, is intended solely for the use of the named recipient(s) and may contain confidential and/or priveleged information.  Any unauthorized review, use, disclosure or distribution of this communication(s) is expressly prohibited.  If you are not the intended recipient, please contact the sender by reply e-mail and destroy any and all copies of the original message.


More information about the thelist mailing list