XP is just a number | |
PerlMonks |
AJAX, Perl/CGI, Apache, MySQLby hackdaddy (Hermit) |
on Nov 17, 2005 at 22:28 UTC ( [id://509621]=perlquestion: print w/replies, xml ) | Need Help?? |
hackdaddy has asked for the wisdom of the Perl Monks concerning the following question:
After a little experimentation, I have Ajax working and getting XML from a Perl/CGI script at regular intervals with the setInterval JavaScript function. In the JavaScript code, I parse the returned XML and append elements to populate a table at the interval rate.
One of the things I want to do with AJAX is refresh tables at regular intervals like Gmail does. However, I need to track the state of the table on the client side and only send rows from the server that are needed. I also want to stream log files to the AJAX client at regular intervals. My question is: How do I keep track of the state of the JavaScript/HMTL I am creating and then get the appropriate xml data from the Apache web server? How does Gmail do this? Thanks.
Back to
Seekers of Perl Wisdom
|
|