Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82267

Button instead of a link in the table cell

$
0
0
Hi,

I am using datatables & the dataset contains a huge link, which is displayed in the cell of the table. My json data contains the foll:-

{ "aaData": [
	["Application 1","http://someurl/abc/def/something1.html"],
	["Application 2","http://someurl/abc/def/something2.html"],
	["Application 3","http://someurl/abc/def/something3.html"],
	["Application 4","http://someurl/abc/def/something4.html"],
	["Application 5","http://someurl/abc/def/something5.html"],
	["Application 6","http://someurl/abc/def/something6.html"],
	
] }


Since the link displayed in the table doesnt look too good, hence am looking to use a button instead of the link to be displayed in the table.
When the user clicks on the button It would take him to that relevant link.

The button html I would be using would be as follows;-

<input class="button" type="button" onclick="window.location.href='http://someurl/abc/def/something4.html'" value="Link">

Any help on this is appreciated. Thanks for looking.

Viewing all articles
Browse latest Browse all 82267

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>