Folks,
Ok, this is an old topic but as the server I wrote for the NE64 about 4 years ago does as has been described in this topic, I figured I would describe how it is down...obviously without and Ajax, et al processing. If I repeat something from this topic here, I apologize.
Specifically, one can place more than one page in a page's HTML. For the purpose here, the second complete page is placed at the bottom something like this:
</form>
<form name="Comm" method="get" target="Comm">
<input type="hidden" value="0" name="Start1">
</form></body>
</html>
Now as one can see, it is hidden. So my server and pages perform a constant heartbeat to our device to make sure to the page that the server is still there. On the server side, this allows the server to close the session if the heartbeat is not received.
The is also used so that we never refresh any page after it has been presented. I did not have enough RAM space on the NE64 for the largest IP packet possible so the page presentation was slow. The background updates are fast though since the page is not refreshed and the only stuff passed back/forth is thr request as usual and then just the data change for the response.
Each page has a script to handle the hidden page response, which basically calls the same script that processes the page's original data values and updates the form. Also some of the pages actually do not populate any fields from the base page's HTML but rather call the hidden page to send the data to populate the primary page with. This model speeds up the presentation as my server does not handle dual-sends per browser ACK or parallel connections/requests as uTasker does very nicely.
The server just knows how to handle this special page by its name/action set. It does the processing/data update and sends back the hidden page.
That's it.
Of course it is the responsibility of the server to handle all this in the fashion desired. One other item helped in that the primary origin page name is included in the request made for the hidden page so that the server knows what to do for that page. Otherwise, all of the page processing on my server is handled by the same code.
In any case, I am in the process of implementing this in uTasker v1.4 and will let you know. As far as I can see, it should work as long as I can inhibit any std processing that might get in the way. At this point i have not seen any, but I have not gone super deep into this.
To all, take care.
- jon