Problem with links on cells

Problem with links on cells

tgptgp Posts: 13Questions: 0Answers: 0
edited May 2009 in General
Hi Allan,
I want to show links on some cells of each row, but the generated table just show me the links only only on one column, the other column remove the link atributes.

this is the Json Code:
[code]
{ "aaData": [["1", "0", "4915300101126840", "Miguel Giron Quintanilla_1", "12122.4", "Llamar hoy","24/05/2009 00:34:55", "1243143295" ],["2", "0", "4915310206012250", "Nancy Cordon Valencia_1", "2851.4", "Llamar hoy","24/05/2009 00:40:07", "1243143607" ]] }
[/code]

this is the aoColumns:
[code]
"aoColumns": [
{ "sType": "natural", "bSearchable": true, "bSortable": true, "sClass": "ajaxlink", "sWidth": "30px"},
{ "sType": "natural", "bSearchable": true, "bSortable": true, "sClass": "ajaxlink", "sWidth": "30px"},
{ "sType": "natural", "bSearchable": true, "bSortable": true, "sClass": "ajaxlink", "sWidth": "100px" },
{ "sType": "natural", "bSearchable": true, "bSortable": true, "sClass": "ajaxlink", "sWidth": "250px" },
{ "bSearchable": false, "bSortable": true, "sWidth": "50px" },
{ "bSearchable": true, "bSortable": true, "sWidth": "100px" },
{ "sType": "html", "sWidth": "150px" },
{ "sType": "natural", "bSearchable": false, "bSortable": true, "bVisible": false, "sClass": "ajaxlink", "sWidth": "30px"}
],
[/code]

and this is the result:
[code]

1
0
4915300101126840

Miguel Giron Quintanilla_1

12122.4
Llamar hoy
24/05/2009 00:34:55


2
0
4915310206012250

Nancy Cordon Valencia_1

2851.4
Llamar hoy
24/05/2009 00:40:07

[/code]

the 7th column is hidden
as you can see the third column lost the link :S

what can be wrong???

Replies

  • allanallan Posts: 63,230Questions: 1Answers: 10,417 Site admin
    Hi tgp,

    My guess is that your JSON isn't valid. You've got unescaped quote marks inside your strings which is causing the problem. Try validating your JSON with www.jsonlint.com - it's exceptionally useful for debugging JSON problems.

    Regards,
    Allan
  • tgptgp Posts: 13Questions: 0Answers: 0
    Hi Allan,
    I validate my Json and the result was a valid Json. I testit with double quote mark and neither.

    Do you have a little example where to show more than 1 link on each row?
  • allanallan Posts: 63,230Questions: 1Answers: 10,417 Site admin
    Hi tgp,

    There are a number of problems with this line:

    [code]
    "
This discussion has been closed.