Hi,
i have to following not working code:
I try to change the variable page_to_edit when the link is clicked, but somehow I can't find a way to do this.
Any help would be great ..!
i have to following not working code:
- Code: Select all
<cms:pages masterpage='sales_transactions.php' limit='50' paginate='1' custom_field="invoice_no=<cms:show sa_no/>" order='asc'>
<table width="100%">
<td id="getId">
<!-- <cms:set page_to_edit ="<cms:show k_page_id/>" 'global' /> FIXME: @k_page_id [getting only the last one in the list] need page id for edit form -->
<a href="#" onClick="GetPageID(<cms:show k_page_id/>);" class="label"><i class="foundicon-edit"></i></a>
</td>
</table>
</cms:pages>
<script type="text/javascript">
$(document).ready(function() {
function GetPageID(pageid) {
var page_to_edit = (pageid) ;
}
});
</script>
I try to change the variable page_to_edit when the link is clicked, but somehow I can't find a way to do this.
Any help would be great ..!