If the table name is example:test datatables does not work

If the table name is example:test datatables does not work

kulkarni_ashkulkarni_ash Posts: 35Questions: 8Answers: 0
edited February 2012 in DataTables 1.8
I am trying to add datatables to one JSF project, and there is a table with table name as form:tableName, which is how JSF creates id

If the table name has colon : in it, looks like datatables does not work

actually the error is in Jquery function Sizzle.filter
any ideas how to get around this issue

Replies

  • kulkarni_ashkulkarni_ash Posts: 35Questions: 8Answers: 0
    I think i was able to solve this by using this method
    $('#example\\:test').dataTable();
  • kulkarni_ashkulkarni_ash Posts: 35Questions: 8Answers: 0
    nope not working
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Found this from a quick google search:
    http://stackoverflow.com/questions/122238/handling-a-colon-in-an-element-id-in-a-css-selector#656463

    It looks like a double backslash is needed:
    http://live.datatables.net/aniqan/edit

    Allan
  • kulkarni_ashkulkarni_ash Posts: 35Questions: 8Answers: 0
    Allan

    Thanks, can you please check my other post, and see why it is not working

    http://datatables.net/forums/discussion/8461/using-datatables-on-table-created-using-java-script-not-working-does-not-show-paging#Item_1
This discussion has been closed.