vendredi 4 avril 2014

Invoke a tag library on anchor link click event without form refresh?


Vote count:

0




I've a scenario where I've to make a call to Grails/ jsp taglib in order to get data and feed to the google charts. Here is my GSP code.



<a href="#empTab" onclick="initializeData();">
<r:script>
initializeData()

function initializeData(){
var chartsData = {}
chartsData.frameDelayVariation = <emp:metrics name="${name}" timeInterval="${timeInterval}" />
}
<r:script>


When I first come to the page,it invokes taglib and when I click on HREF link, the JS function get called but taglib not being invoked...


So is there any way that I could achieve this by Jquery without form submit?



asked 13 secs ago






Aucun commentaire:

Enregistrer un commentaire