Datasheet

Flyport Wi-Fi and Ethernet Programmer's guide framework 2.3 (rev 1.0) www.openpicus.com
This function processes every POST request from the pages.
*****************************************************************************/
HTTP_IO_RESULT HTTPExecutePost(void)
{
return HTTP_IO_DONE;
}
#endif
void HTTPPrint_string_serial(void)
{
TCPPutString(sktHTTP,(BYTE*) string_serial);
}
#endif
As can be seen, there are two main operations in this file, and they are the declaration of
extern char string_serial[];
and the function
void HTTPPrint_string_serial(void)
that executes a TCP write to communicate the value of string_serial at the client
QUESTION: Is there a way to update values without the need of refreshing the whole page?
The answer lies in the using of AJAX.
AJAX in Action
AJAX is used to automatically update values in webpages without the need of continual refreshes of
the overall HTML page.
Using AJAX the request for data from the Flyport will be prompted directly by the webpage, and the
browser does not have to refresh the entire page. With AJAX, the data are truly dynamic, with
automatic refreshes of only the data that need to be updated.
Here is an example of a serial to webpage string using AJAX scripts. In this example, files in addition
to index.htm are used. The folder structure is:
index.htm
status.xml
leds.cgi
mchp.js
header.inc
footer.inc
style.css
images/openpicus_logo_blog.png
images/arrow.gif
images/bar.gif
images/baractive.gif
63