I'm coming up to speed with JQM but am a newbie with AJAX. What I'd like to do is dynamically populate a form's text field with data coming from a digital scale, refreshing every few seconds. When the form gets submitted, the currently displayed weight gets inserted into the database via standard form processing.
The scales are on order and I've requested technical info, so I'll need to figure out some of the details when I have the hardware and specs. We will be using PHP on the server side, perhaps the scales can send raw socket data or else output to a text file for processing...
The scale likely implements either a simple HTTP REST server, a streaming socket interface, or both. Your client will need to use AJAX to periodically poll the scale, or else establish a socket connection to receive streaming updates.
You can then use jQuery to update the form's text field.
Leave a comment on watusiware's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic