Hi all,
Does anyone know how when i call a java method from a javascript function in a velocity template how I pass parameters?
so in my velocity template I have
function loadval(sel)
{
alert('$runner.quickTest(parseInt(5))')
}
and in my java class i have :
public Integer quickTest(Integer id)
{
return id;
}
When I try this jira just hangs, I can call the method without parameters and it works fine.
also the method only seems to be called once when the page is loaded rather than everytime I select a different option on a select box, the javascript is called from an on change event.
Any ideas anyone?
Thanks!!