Just spent half day figuring this out:
When retrieving anything from a JDBC connection on MYSQL-JCONNECT, and sending that data through _server.sendResponse() in JS extension (in both json and xml format), all data is sent as null.
Solution:
data must be re-typed: String(data) Number(data) otherwise it will be received by client as null.
I think the JS server API should consider re-typing automatically.
thanks
Pippo
Data from DB do not get passed to client unless re-type
-
Pippoflash
- Posts: 135
- Joined: 30 Jan 2006, 17:16
- Contact: