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

sDom injection and bServeSide processing

$
0
0
Hi,

I'm fighting with the problem injecting my own toolbar via sDom variable as explained in the documentation. My sDom string looks like:

"sDom": 'lT<"#rechnung_liste_toolbar">frtip',

And I can see the div element with the id rendered properly but if I want to access it via jQuery selector like this (code below datatables initialization):

$('#rechnung_liste_toolbar').html('<b>Toolbar</b>');

The new html content is not set. I used firebug to find the problem and figured out that when i set a breakpoint at the line above, the right content (<b>Toolbar</b) is set. So I guess the selector is triggered before the table is totally initialized or something like this. Does anyone of you have an idea?

thanks,
Max

Viewing all articles
Browse latest Browse all 82264

Trending Articles



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