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?
Ejow
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
This discussion has been closed.
Replies
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
is it possibe if Not using JSON? QT got the JSON output, but if possible to avoid using it.
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