• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Website - Refreshing only a part of a page

jmcoreymv

Diamond Member
I have a website that is driven with PHP/MySQL. On one of the pages, there are sensor values that I want to have refreshed at a given interval. Is there an easy way for me to query the database and update ONLY the sensor values, without refreshing the entire page? How do I do this?

Thanks.
 
If you want to be fancy, you can look up AJAX or more specifically xmlhttprequest. It will let you query a separate PHP page for the data, and then update the sensor values using Javascript.

The fast and dirty way would be to use an iframe.
 
If it was a professional site, I would attempt to learn something else. But it's for a class project, and I'm an EE with no interest/skills in web development. Quick and dirty works for me.
 
Back
Top