Is there possible to use server-side processing using QT instead of ajax/json?

Is there possible to use server-side processing using QT instead of ajax/json?

EjowEjow Posts: 2Questions: 0Answers: 0

Hi there,
I am new in this web design and really need your expert opinion on the question above.
Basically, i want to display table in HTML together with pagination. The table data is gathered from database via QT. QT will send information such as records, total records, total page, current page etc to js and js will create the table together with pagination based on information from QT. Is it possible? Thanks in advance

Replies

  • allanallan Posts: 63,747Questions: 1Answers: 10,509 Site admin

    Qt as in the UI library? If so, then yes, it is perfectly possibly, you just need to have it output valid JSON. I'm not a Qt programmer myself, but I'm sure there will be a library for JSON output if there isn't one built into the framework.

    Allan

  • EjowEjow Posts: 2Questions: 0Answers: 0

    is it possibe if Not using JSON? QT got the JSON output, but if possible to avoid using it.

  • allanallan Posts: 63,747Questions: 1Answers: 10,509 Site admin

    What would you prefer to output the data as? XML? If so, then use the ajax.dataSrc option to convert from XML (or whatever data format you decide to use) to Javascript arrays and objects.

    Allan

This discussion has been closed.