Need to add tags within JavaScript array data source
Need to add tags within JavaScript array data source
Hi all
I need to be able to add an anchor tag to the first column (or all columns, should it not prove possible to restrict the functionality to the first column only) to allow a click to link to a subsequent page.
Due to the number of records in the data source I'm using a JavaScript array and allowing DataTables to build the table for me.
Unfortunately I can't see how to add the functionality I need, if it's even possible.
The target for the anchor tag will be one of the JavaScript array elements.
Has anyone done something similar or can anyone suggest a possible solution, please?
Cheers
Patrick
I need to be able to add an anchor tag to the first column (or all columns, should it not prove possible to restrict the functionality to the first column only) to allow a click to link to a subsequent page.
Due to the number of records in the data source I'm using a JavaScript array and allowing DataTables to build the table for me.
Unfortunately I can't see how to add the functionality I need, if it's even possible.
The target for the anchor tag will be one of the JavaScript array elements.
Has anyone done something similar or can anyone suggest a possible solution, please?
Cheers
Patrick
This discussion has been closed.
Replies
Basically, the first was created from a JavaScript data construct like this:
[code]
var aDataSet = [
["Link title", "BSc", "2009/10"],
[/code]
etc.
Cheers
Patrick