Own input at generated div

Own input at generated div

handbuchhandbuch Posts: 55Questions: 0Answers: 0
edited September 2010 in General
Hi, first a pic of my table: http://yfrog.com/ncdropdownp

How can i get the dropdown into the same div like the filter/search is? where the square is?

thats my table:

oTable = $("#example").dataTable( {
"bPaginate": false,
"bDestroy": true,
"sAjaxSource": "files/php/getJSON.php",
"aoColumnDefs": [{
"fnRender": function ( oObj ) {
return \'\';
i++;
},
"aTargets": [ 0 ]
}]
});

Replies

  • cdaiglecdaigle Posts: 57Questions: 0Answers: 0
    The best way to do this would be to use the sDom feature and add a div to the toolbar, then place your dropdown element inside it. See my post here for some pages with details and an example.
    http://datatables.net/forums/comments.php?DiscussionID=2824
  • handbuchhandbuch Posts: 55Questions: 0Answers: 0
    ok thanks, i will check that out. :)
  • handbuchhandbuch Posts: 55Questions: 0Answers: 0
    does .html rly not support multiline? like $("div.action").html("we") works but not
    $("div.action").html(asd
    asd)? hmm sad but thanks it works :)
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    That's a limitation of Javascript rather than jQuery. Multiline strings in Javascript are a bit of a nightmare to be honest - something that I'd really like to see addressed in future versions of the specification.

    What you can do is put a slash just before the new line, or break it into multiple strings with the "+" contatination operator.

    Allan
  • handbuchhandbuch Posts: 55Questions: 0Answers: 0
    yeah, ok. thanks. hope they do "fix" that ^^
This discussion has been closed.