dirwin26
12-06-2006, 07:18 PM
Hi all, my request I think is quite simple. All I want to do is open a new window from my webpage in a resized window. Sorry for the clutter. Any help is appreciated. Thanks.
My button code(jscript) looks like this:
<FORM>
<INPUT type="button" value="target" onClick="window.open('http://ipaddress/js','mywindow','width=400,height=200')">
</FORM>
the destination page(vbscript) looks like this:
<%@ LANGUAGE="vbSCRIPT"%>
<%
Ticker = request.form("Ticker")
Multiple = request.form("multiple")
quarter = request.form("quarter")
Set odbc = Server.CreateObject("ADODB.Connection")
odbc.Open "DRIVER={SQL Server};SERVER=IPadress;Database=ddx;UID=sa;PWD=ddx;APP=web;"
SQL = "EXEC ddx..as00 @Ticker='" & ticker & "',@multiple='"&multiple&"',@quarter='"&quarter&"'"
Set RS = Server.CreateObject("ADODB.RecordSet")
RS.Open SQL, odbc, 0, 1
Do While not RS.EOF
price = RS("price")
RS.Movenext
Loop
set rs=RS.NextRecordset()
Do While not RS.EOF
target =RS("target")
RS.Movenext
Loop
RS.Close
%>
Current Price
$<%=price%>
<TD><BR>
Target Price
$<%=target%>
<BR>
Return
<%=(formatpercent((target-price)/price))%>
My button code(jscript) looks like this:
<FORM>
<INPUT type="button" value="target" onClick="window.open('http://ipaddress/js','mywindow','width=400,height=200')">
</FORM>
the destination page(vbscript) looks like this:
<%@ LANGUAGE="vbSCRIPT"%>
<%
Ticker = request.form("Ticker")
Multiple = request.form("multiple")
quarter = request.form("quarter")
Set odbc = Server.CreateObject("ADODB.Connection")
odbc.Open "DRIVER={SQL Server};SERVER=IPadress;Database=ddx;UID=sa;PWD=ddx;APP=web;"
SQL = "EXEC ddx..as00 @Ticker='" & ticker & "',@multiple='"&multiple&"',@quarter='"&quarter&"'"
Set RS = Server.CreateObject("ADODB.RecordSet")
RS.Open SQL, odbc, 0, 1
Do While not RS.EOF
price = RS("price")
RS.Movenext
Loop
set rs=RS.NextRecordset()
Do While not RS.EOF
target =RS("target")
RS.Movenext
Loop
RS.Close
%>
Current Price
$<%=price%>
<TD><BR>
Target Price
$<%=target%>
<BR>
Return
<%=(formatpercent((target-price)/price))%>