SOLVED - fnFilter and ( )

SOLVED - fnFilter and ( )

allservallserv Posts: 8Questions: 0Answers: 0
edited August 2010 in General
Hello,

I have a little issue when i use the fnFilter function. When i have a column which contains a text with ( ) the function don't work on this.

Example :

with this text, fnFilter don't work :
Configuration de progiciel (package)

But on this, it works :
Conception et d

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Which version of DataTables are you using? The third parameter of fnFilter has had it's meaning changed in 1.7.

    My guess is that the brackets need to be escaped...

    Allan
  • allservallserv Posts: 8Questions: 0Answers: 0
    Thanks a lot Allan. Now I replace ( ) by \( and \) and it's works :

    [code] display.push($(this).val().replace( /\(/g, "\\(").replace(/\)/g, "\\)"));[/code]

    Thanks

    Louis
This discussion has been closed.