jingleballicks
06-13-2005, 10:01 AM
right. im new to Javascript.
im getting an annoying problem with passing Strings to
a javascript function from jsp.
<%String match = "test"%>
<td> <a href="#" onClick="return rateSelection(<%=match%>)">Rate </a></td>
and the javascript:
function rateSelection(match){
document.write(match);
}
could someone tell me what im doing wrong here because it doesnt
work.
i apologise for my ignorance.
im getting an annoying problem with passing Strings to
a javascript function from jsp.
<%String match = "test"%>
<td> <a href="#" onClick="return rateSelection(<%=match%>)">Rate </a></td>
and the javascript:
function rateSelection(match){
document.write(match);
}
could someone tell me what im doing wrong here because it doesnt
work.
i apologise for my ignorance.