Is it possible to embed Javascript into HTML: Mason for Perl?
Thank you
<%init>
#do some perl code here
<script type="text/javascript">
//call some javascript function here
</script>
#do some perl code here
</%init>
I have a web service exposed using JSON and I want to call it using Javascript code.
Can I put the Javascript code between <%perl>?