Time:
Scotland: Sat, 6:44 am
Rhode Island: Sat, 1:44 am
Florida: Sat, 1:44 am
New Mexico: Fri, 11:44 pm
California: Fri, 10:44 pm

Click here to visit Livelife365.com

Click here to visit nmdarts.com



Buy this Ad Space.

180px wide.

Please get in touch with KH@ if you are interested and make an offer.

Selanac Embroidery and Screen Printing

Embroidery
Screen Printing
Signs and Banners
Promotional Advertising

WEBSITE

Contact Paul Canales
TEl: USA 732-901-8417
CELL: USA 732-773-1339


Please click here for more information


For continued disscussion on this topic : ColdFusion: select option needs to open new window


jduawa
01-09-2002, 04:44 PM
i have the following code that i am using in cold fusion.
the select options are gerated from a coldfusion query and when the user hits run report the report runs. i need to be able to have the user hit run report and have the report run in a new window with the select option. I cannot figure this out
thanks

<select name="dateSelect">
<option value="placeholder">Select A Date</Option>
<cfoutput query="period">
<option value="http://blahblahblah.blah.com/cgi/rwcgi60.exe?#URL.ReportType#+#URL.catcode#+#URL.user#+#URL.axis1#+#URL.Axis2#+#URL.code1#+#URL.code2 #+#Period_Name#">#Period_Name#</option>
</cfoutput>
</select>
<br>
<br>
<input type="submit" onClick="parent.location.href=dateSelect.options[dateSelect.options.selectedIndex].value;" value="Run Report">

jduawa
01-09-2002, 04:49 PM
found the answer
used this
http://www.webxpertz.net/forums/showthread.php?t=12712&highlight=location.href
how would i set the window options then
thanks...great site

hotpepper
01-09-2002, 05:05 PM
Put this in your header:
<script>
function NewWin(){
var MyPage = document.dateSelect.options[dateSelect.options.selectedIndex].value;
window.open(MyPage, 'NewWindow', "width=500,height=300,scrollbars=no");
}
</script>
Then change this:
<input type="submit" onClick="parent.location.href=dateSelect.options[dateSelect.options.selectedIndex].value;" value="Run Report">
to this:
<input type="button" onClick="NewWin();" value="Run Report">

jduawa
01-09-2002, 05:19 PM
sweeet thanks

hotpepper
01-09-2002, 05:21 PM
That's what we're here for.

Oh, and welcome to the City. :)