I generate javascript function name dynamically like this:
<script>
function mouseOver<%= [email protected] %>() {
//do stuff;
}
</script>
And later I need to launch this function from html, but nothing happens:
<div onmouseover='mouseOver" + [email protected] +"()' />
I guess I am calling it in wrong way. BTW, the @special.ObjectId is a number taken from Model and it is not null. How can I call the function here?
When we have the similar problem, we followed this way to invoke dynamic script.
Hope this helps.!