Link to home
Start Free TrialLog in
Avatar of manne
manne

asked on

asp to javascript variables???

I've a script like this,
<SCRIPT LANGUAGE="JavaScript">
<!--
         function WinOpen2() {          msg=window.open("thomas.html","ButtonWindow","toolbar=no,width=420,height=260,directories=no,status=no,scrollbars=no,resize=no,menubar=no");
        }
//-->
</SCRIPT>
and I want this (it doesn't work)
msg=window.open("ptext.asp?addn="<%=rs("ok")%>,
                                                     =============
Any solution???
Avatar of manne
manne

ASKER

Edited text of question
what about something like this ?

msg = window.open('ptext.asp?addn=<%=rs("ok")%>','toolbar=no,width=420,height=260')
What is the rs for?  Is that referring to a recordset?  If it is, you would need to do <%=rs.fields("ok") %> rather than <%=rs("ok")%>
Also, are you sure you are establishing a database connection if this is a recordset...


ASKER CERTIFIED SOLUTION
Avatar of Otta
Otta

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of manne

ASKER

solved!