Is there a way to embed php within javascript code? I know that php is
server side and js is client side. For instance when working with jsp,
you can imbed jsp scriptlets within the js code.
e.g
<script language="javascript">
function foo() {
var bar = <%=(java variable)%>