When using server-side entering "/" in the global search "Search:" throws an error.

When using server-side entering "/" in the global search "Search:" throws an error.

GlyndwrGlyndwr Posts: 117Questions: 32Answers: 0

I have cloned http://live.datatables.net/idinat/edit#javascript,html to get http://live.datatables.net/dojezogo/1/edit and neither the original nor this one will work. Do you have a working code for server-side I can start with please?

Anyway my issue is that when I enter "/" in the global search "Search:" I get the error:

"DataTables warning: table id=youthMemberTable - Ajax error. For more information about this error, please see http://datatables.net/tn/7". 

This does not happen when I am not using server-side. How can I fix this please?

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 10,718Questions: 25Answers: 2,449

    Do you have a working code for server-side I can start with please?

    You can find base scripts with server side processing here:
    https://datatables.net/manual/tech-notes/9#Server-side-processing

    I get the error:

    Did you follow the troubleshooting steps at the link provided in the error?
    http://datatables.net/tn/7

    You will need to debug the server side script. Is this a Datatables provided server script?

    Kevin

  • GlyndwrGlyndwr Posts: 117Questions: 32Answers: 0

    Thanks Kevin, yes and I should have mentioned that the code is "400".

  • kthorngrenkthorngren Posts: 10,718Questions: 25Answers: 2,449
    Answer ✓

    I should have mentioned that the code is "400".

    You will need to look at the server logs to find out what is happening.

    If your ajax option is configured to use GET then all the server side parameters are sent in the URL and the / in the URL might cause issue. You can try using type POST like this example. You will need to modify your server script to process POST parameters.

    Kevin

Sign In or Register to comment.