MongoDB datatables with PHP Codeigniter

MongoDB datatables with PHP Codeigniter

rrtt22rrtt22 Posts: 17Questions: 1Answers: 0

Can you help me how i can fill sEcho with fields of my database

Replies

  • allanallan Posts: 61,650Questions: 1Answers: 10,094 Site admin

    sEcho is only used for legacy server-side processing. I would suggest you use draw with the current server-side processing parameters. As that documentation explains, the draw parameter is derived from the information the client sends to the server.

    Allan

  • rrtt22rrtt22 Posts: 17Questions: 1Answers: 0

    it can works for mongoDB ??

  • rrtt22rrtt22 Posts: 17Questions: 1Answers: 0

    always undefined sEcho

  • rrtt22rrtt22 Posts: 17Questions: 1Answers: 0

    is it true ?? can you help me ?? i use mongoDB database not sql

  • allanallan Posts: 61,650Questions: 1Answers: 10,094 Site admin

    Are you using DataTables 1.9 or earlier? Why are you using sEcho when I stated above you should use draw and give a link to the documentation explaining what that parameter is and how to use it.

    Allan

  • rrtt22rrtt22 Posts: 17Questions: 1Answers: 0

    in mongodb datatables template it was sEcho, not draw

  • rrtt22rrtt22 Posts: 17Questions: 1Answers: 0

    the data have been showed at network (inspect) , but not showed at table.

  • allanallan Posts: 61,650Questions: 1Answers: 10,094 Site admin

    Do you mean this template? The one that at the top says:

    Important - Do not use this script for new development - it will not work! It is no longer maintained and does not support DataTables 1.10+'s server-side processing mode.

    Or are you using some other script?

    Allan

  • rrtt22rrtt22 Posts: 17Questions: 1Answers: 0

    yeah that script i use

  • rrtt22rrtt22 Posts: 17Questions: 1Answers: 0

    im sorry i dont read important message , what should i use for mongodb script datatables?

  • allanallan Posts: 61,650Questions: 1Answers: 10,094 Site admin

    As far as I am aware a Mongo DB script for DataTables 1.10+ hasn't yet been written (at least, not one that I'm aware of and is publicly available).

    You would probably need to write your own script or update the legacy one. If you do, perhaps you could share it so others could also benefit.

    Allan

This discussion has been closed.