Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: HTML in an ASP code. HELP!


Message #1 by "Valentino Osterwalder" <valentino@t...> on Mon, 19 Aug 2002 20:03:14
Hi, I need some help on a series of HTML strings included in a ASP code.

I want to open a new page starting from a link in a main page. Everything 
works fine but the options listed in the code are not working at all. The 
options i mean are for example "height=700,width=500" or "resizable=0", 
etc.

The code i wrote is:

While Not objRS.EOF
Response.Write "<TR><TD WIDTH='20%' VALIGN='top'><FONT 
FACE='Arial'SIZE='2'>" & _
"<A HREF='Scheda.asp?NumGiocatore=" & objRS("IDMembro") 
& "'TARGET='_blank' " & _
"ONCLICK='window.open" & _
"('http://www.fcrapid.ch/Scheda.asp?NumGiocatore=" & objRS("IDMembro") & _
"', 'Window" & objRS("IDMembro") & _
"','toolbar=0,location=0,directories=0,status=1,menubar=0," & _
"scrollbars=0,resizable=0,height=700,width=500');return false;'>" & _
objRS("NomeMembro") & " " & objRS("CognomeMembro") & _
"</A></FONT></TD>" & _
"<TD WIDTH='20%' VALIGN='top'><FONT FACE='Arial' SIZE='2'>" & _
objRS("FunzioneRuoloGiocatore") & "</FONT></TD>" & _
"<TD WIDTH='20%' VALIGN='top' STYLE='font-size: 9pt'>&nbsp;</TD>"
objRS.MoveNext

The window does not show up as I would like to. If somebody would like to 
help me out, then have a look at:

http://www.fcrapid.ch and follow the links:
"Attivitą"
"Prima Squadra"
"La Rosa"

From there select a name and look at the result. All the options i wanted 
to put in force are not working.

Can somebody please explain me why it does not work and how can I fix it?

Sorry for the italian paging but I believe it's not important to 
understand it.

Many thanks in advance,
Valentino
Message #2 by "Drew, Ron" <RDrew@B...> on Mon, 19 Aug 2002 15:48:46 -0400
Did not test this..but try with Javascript

<script language=3D"JavaScript">
<!--
function newWindow() {
   var 
x=3Dwindow.open('http://www.fcrapid.ch/Scheda.asp?NumGiocatore=3D" & <% 
objRS("IDMembro") 
%>,'sub','height=3D700,width=3D500,left=3D450,scrollbars=3D0,resizable=3D
0',toolbar=3D0,location=3D0,directories=3D0,status=3D1,menubar=3D0);
}
//-->
</script>

While Not objRS.EOF
Response.Write "<TR><TD WIDTH=3D'20%' VALIGN=3D'top'><FONT 
FACE=3D'Arial'SIZE=3D'2'>" & _
"<A HREF=3D'Scheda.asp?NumGiocatore=3D" & objRS("IDMembro") & 
"'TARGET=3D'_blank' " & _
"ONCLICK=3D"newWindow()" & _
objRS("NomeMembro") & " " & objRS("CognomeMembro") & _ 
"</A></FONT></TD>" & _ "<TD WIDTH=3D'20%' VALIGN=3D'top'><FONT 
FACE=3D'Arial' SIZE=3D'2'>" & _
objRS("FunzioneRuoloGiocatore") & "</FONT></TD>" & _
"<TD WIDTH=3D'20%' VALIGN=3D'top' STYLE=3D'font-size: 9pt'>&nbsp;</TD>" 
objRS.MoveNext


-----Original Message-----
From: Valentino Osterwalder [mailto:valentino@t...]
Sent: Monday, August 19, 2002 4:03 PM
To: ASP Databases
Subject: [asp_databases] HTML in an ASP code. HELP!


Hi, I need some help on a series of HTML strings included in a ASP code.

I want to open a new page starting from a link in a main page. 
Everything
works fine but the options listed in the code are not working at all. 
The
options i mean are for example "height=3D700,width=3D500" or 
"resizable=3D0",
etc.

The code i wrote is:

While Not objRS.EOF
Response.Write "<TR><TD WIDTH=3D'20%' VALIGN=3D'top'><FONT 
FACE=3D'Arial'SIZE=3D'2'>" & _
"<A HREF=3D'Scheda.asp?NumGiocatore=3D" & objRS("IDMembro") & 
"'TARGET=3D'_blank' " & _
"ONCLICK=3D'window.open" & _
"('http://www.fcrapid.ch/Scheda.asp?NumGiocatore=3D" & objRS("IDMembro") 
& _
"', 'Window" & objRS("IDMembro") & _
"','toolbar=3D0,location=3D0,directories=3D0,status=3D1,menubar=3D0," & 
_
"scrollbars=3D0,resizable=3D0,height=3D700,width=3D500');return 
false;'>" & _
objRS("NomeMembro") & " " & objRS("CognomeMembro") & _ 
"</A></FONT></TD>" & _ "<TD WIDTH=3D'20%' VALIGN=3D'top'><FONT 
FACE=3D'Arial' SIZE=3D'2'>" & _
objRS("FunzioneRuoloGiocatore") & "</FONT></TD>" & _
"<TD WIDTH=3D'20%' VALIGN=3D'top' STYLE=3D'font-size: 9pt'>&nbsp;</TD>" 
objRS.MoveNext

The window does not show up as I would like to. If somebody would like 
to
help me out, then have a look at:

http://www.fcrapid.ch and follow the links:
"Attivit=E0"
"Prima Squadra"
"La Rosa"

From there select a name and look at the result. All the options i 
wanted
to put in force are not working.

Can somebody please explain me why it does not work and how can I fix 
it?

Sorry for the italian paging but I believe it's not important to
understand it.

Many thanks in advance,
Valentino

  Return to Index