Shop OBEX P1 Docs P2 Docs Learn Events
Using AJAX to write to PHP - then parse PHP — Parallax Forums

Using AJAX to write to PHP - then parse PHP

pthartmannpthartmann Posts: 27
edited 2011-02-23 18:22 in Accessories
Using Javascript, specifically jQuery and AJAX commands, I would like to write to a PHP file stored on the SD card.

Then, if possible, I would like to parse the PHP file in order to have discrete control within the Propeller.

Last but not least, I would like to also send data(in real time) from the Propeller to the Webpage - I'm not sure if the aforementioned process could work in reverse --> Propeller writes to PHP and then refreshed on the Webpage.

Approaches I would like to stay away from are, IFRAME and traditional GET/POST/REFRESH techniques that reload the entire Webpage.

My latest inspiration comes from this website: LINK

I suppose achieving this would provide anyone the means to send real-time-data to and from the µC and Webpage in an efficient manor. Furthermore this would provide the basis for a quality control system for any automated system. -I have attached initial code. This code has buttons using javascript and other elements from contributors here on the forum.

Comments

Sign In or Register to comment.