I have a table rendered from the values which is fetched from the backend as json,
In one of the cells i have a button on click of this button i would like to render another xhtml page but i also want a parameter to be passed along with the hyperlink how can this be acheived, Thanks in advance herewith i m posting my code for reference,
$.get('../Paid_deep_dive', {type: "paid_performance", campaign_id: $campaign, s_date: start_date, e_date: end_date}, function (response) {
var data = response.paid_performance;
response_data = response;
$('table#tb2 TBODY').append('<tr><td width ="12%"><form><input type="button" class="btn btn-block btn-lg btn-inverse" onclick="loadtable2(' + elem.site_id + ')" value="' + elem.site_name + '" style="width:100%" ></form></td>' + elem.site_name + '</center></td><td align="center" width="33%"><center>' + elem.impressions.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") + '</center></td><td align="center" width="25%"><center>' + elem.ontarper + '%</center></td>;<td align="center"><center>' + elem.viewable_imp.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") + '</center></td></tr>');
});
Here in this above code i would like to have an hyperlink at the
onclick = "http://localhost:8080/Digiview_v2/faces/xhtml_files/paid_drill_down.xhtml?variable=" + parameter;
as well as passing the parameter. is there any way to do it correctly