Can't open page with param from DB
Hey,
I facing a problem for a long time.
I can't get to open a new asp window with parameter from DB.
Everytime I run the page it gives me "syntax error"
Here is what I wrote in the page (with the error):
---------------------------------------------------
<SCRIPT LANGUAGE="JavaScript">
function openwin(paramName){
var win= window.open("OnePlace.asp?uPlace=" + paramName,null,"width=650, height=500,toolbar=1, status=1, resizable=1");
}
</SCRIPT>
-----------------------------------
<%
rs.MoveFirst
dim Place
Place = rs("Place")
%>
<p> <a href="javascript:openwin(<%=Place%>);">look here <%=Place%></a> </p>
------------------------------------------------
Of course I did all the connections at the top page of the database and the recordset. and that is working fine.
Could use any help you can give me !
Thank you,
Ronen
|