problem with sAjaxSource and img tags
problem with sAjaxSource and img tags
Hi all,
I'm using datables (datatables.net) in combination with sAjaxSource
great tool :-)
like this
[code]
$(document).ready(function() {
$('#userTable').dataTable({
"sAjaxSource": '<%= Url.Action("GetUserData", "Home") %>',
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"bStateSave": true,
"bRetrieve": true,
"aoColumns":
[
{ "bSortable": false },
null,
{ "sType": "title-string" },
null,
null,
null,
null,
null
]
});
});
[/code]
the server method for this is like this
everything works fine here, I can see the data in the table.
but, some of my properties of the user include some links to pictures
for example
but in the table itself there is always the "/" missing. so the sorting over these columuns don't work. if i do return a
[code]
[/code]
the endtag is missing... in the tablecell the value is always
[code]
[/code]
so its either '/' missing or the whole endtag of img.
did anybody else had this problem?
thanks for your help
I'm using datables (datatables.net) in combination with sAjaxSource
great tool :-)
like this
[code]
$(document).ready(function() {
$('#userTable').dataTable({
"sAjaxSource": '<%= Url.Action("GetUserData", "Home") %>',
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"bStateSave": true,
"bRetrieve": true,
"aoColumns":
[
{ "bSortable": false },
null,
{ "sType": "title-string" },
null,
null,
null,
null,
null
]
});
});
[/code]
the server method for this is like this
everything works fine here, I can see the data in the table.
but, some of my properties of the user include some links to pictures
for example
but in the table itself there is always the "/" missing. so the sorting over these columuns don't work. if i do return a
[code]
[/code]
the endtag is missing... in the tablecell the value is always
[code]
[/code]
so its either '/' missing or the whole endtag of img.
did anybody else had this problem?
thanks for your help
This discussion has been closed.
Replies
got the solution you have to use
" instead of ' then sorting will work again...