Search not working. Stuck.

Search not working. Stuck.

ansibleansible Posts: 9Questions: 0Answers: 0
edited March 2011 in General
Hello,

I am using the form and it is working beautifully. My content is being generated via JSON file. I moved the Search /Filter input to another div using JQuery's appendTo.

The problem is that the Search is resulting in zero results. Not sure what is happening.

My table and initialization code:

[code]



Brand
Camera Model
Optical Zoom
Exposure Control
Focus Control
White Balance Control







Brand
Camera Model
Optical Zoom
Exposure Control
Focus Control
White Balance Control



[/code]

[code]

$j(document).ready(function() {
var oTable = $j('#example').dataTable( {
"bProcessing": true,
"sAjaxSource": camera_source.txt'
} );
$j('.dataTables_filter').appendTo($j('.col-a'));

} );


[/code]

Not sure what is going on?

Thanks in advance!

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    Off the top of my head, I'm afraid I'm not sure (I assume the script error in your Javascript - for the "comera_source.txt'" - is just a typo here in the forum?). The basic idea should certainly work. Can you give us a link to your example please.

    Allan
  • ansibleansible Posts: 9Questions: 0Answers: 0
    hello,

    thanks for responding so fast. the typo is only in the forum as I can't share the absolute URL. Could I possibly trouble you and email the URL to my development?
  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    Sure go for it: http://datatables.net/contact .

    Allan
  • ansibleansible Posts: 9Questions: 0Answers: 0
    Thanks. I sent a message a few minutes ago.
This discussion has been closed.