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

Bad sorting "sType": "html" on Android device

$
0
0
My initialization:
$(document).ready(function() {
  $('#example').dataTable( {
     "sPaginationType": "full_numbers",
      "bStateSave": true,
       "aLengthMenu": [[10, 30, 50, 100,-1], [10, 30, 50,100, "All"]],
	"fnDrawCallback": function ( oSettings ) {
		var that = this;
 	        /* Need to redo the counters if filtered or sorted */
		if ( oSettings.bSorted || oSettings.bFiltered )
		{
		this.$('td:first-child', {"filter":"applied"}).each( function (i) {
		that.fnUpdate( i+1, this.parentNode, 0, false, false );
		} );
		}
		},
		"aoColumnDefs": [
		{ "bSortable": false, "aTargets": [ 0 ] },
                { "sType": "numeric", "aTargets": [ 3] }
		],
		"aaSorting": [[ 2, 'desc' ]] 
		} );
		} );

Second column my table contains HTML link this type:
<a href="http://www.waymarking.com/users/profile.aspx?f=1&guid=
1d0052f6-913a-4989-b61e-3824b2af1221&mypage=1&gt=2">8Nuts MotherGoose<a/>

When I run my table (http://members.chello.cz/arozehnal/gc/profiles/wm/top_1000.html) on PC (IE 9. Firefox)
everything works fine. On my Android4 (Chrome, stock browser) device sorting second column works very strange.
I tried to add:
{ "sType": "html", "aTargets": [ 1] }
but sorting on Android works same bad :-(.

Anythning help? Thanks.

Viewing all articles
Browse latest Browse all 82115

Trending Articles



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