Forum Moderators: open

Message Too Old, No Replies

pass value in url to java pop up

         

teknaut

3:49 pm on Mar 2, 2004 (gmt 0)

10+ Year Member



allo,

sorry if this seems like a stoopid qu to ask but does anyone know how to pass a recordset value to a java popup window?

The last thing I tried looked like this:

<script>
function openWin(display.asp,Newindow)
{
window.open(display.asp,Newindow);
}
//-->
</SCRIPT>

<a href="JavaScript:openWin('display.asp','NewWindow','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,userid=<%=rsSearch("userid")%>')">
more details</a>

any help much appreciated.

[edited by: tedster at 7:28 pm (utc) on Mar. 2, 2004]
[edit reason] turn off smilie [/edit]

mattglet

6:42 pm on Mar 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<script>
function openWin(URL, PageProps)
{
window.open(URL,PageProps);
}
//-->
</SCRIPT>

<a href="JavaScript:openWin('display.asp?userid=<%=rsSearch("userid")%>','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0')">
more details</a>

*Code not tested

-Matt

[edited by: tedster at 7:28 pm (utc) on Mar. 2, 2004]
[edit reason] turn off smilies [/edit]

teknaut

2:00 pm on Mar 3, 2004 (gmt 0)

10+ Year Member



hey man, nice 1 works straight away.