Turns out using setInterval and remembering the highest record number works well enough, but not nearly as sexy as APE!
Thanks for your help, Mark On Mon, Nov 15, 2010 at 2:36 PM, Mark Ehle <[email protected]> wrote: > I will be trying the polling option first. I just thought it would be > way cool to have the server tell the client when there is a new print > job to look at. > > Thanks, everyone! > > On Mon, Nov 15, 2010 at 2:04 PM, Johnathan Leppert > <[email protected]> wrote: >> It depends on your application and needs. You could, for example, use APE to >> handle the real time aspect of pushing data. >> However I must caution you that it will add some complexity to your >> application. If this is an internal app, that not a lot of people will use, >> it may just make more sense to go for an old fashioned polling solution >> (using ajax). >> Johnathan >> >> On Mon, Nov 15, 2010 at 1:09 PM, Ruben Decleyn <[email protected]> >> wrote: >>> >>> There's a few examples in the documentation section of the website. i >>> personally recommend you start by trying them out. >>> It's also wise to look at the code of the examples in the ape folder >>> (the one where you ran the test). >>> >>> >>> Kind Regards. >>> Ruben Decleyn >>> >>> >>> >>> On Mon, Nov 15, 2010 at 6:36 PM, Mark Ehle <[email protected]> wrote: >>> > Hello - I would like to use APE in a project that I am finishing right >>> > now - it is a print metering system for our local library. The staff >>> > interface is web-based. Right now when someone prints something, the >>> > staff has to hit a button to refresh the list of print jobs. I would >>> > like to have APE do that for them. I am using LAMP with jQuery for the >>> > staff web page. When someone prints, a PHP script is fired (by >>> > incron/inotify) to process the incoming print job and update a MySQL >>> > database. At that moment APE should fire a notification to tell the >>> > staff web page to update the list of jobs. >>> > >>> > Everything else is all finished and I have APE installed and working >>> > on the server now. What is next? Are there any simple PHP examples of >>> > this sort of thing anywhere? >>> > >>> > Thanks! >>> > >>> > -- >>> > You received this message because you are subscribed to the Google >>> > Groups "APE Project" group. >>> > To post to this group, send email to [email protected] >>> > To unsubscribe from this group, send email to >>> > [email protected] >>> > For more options, visit this group at >>> > http://groups.google.com/group/ape-project?hl=en >>> > --- >>> > APE Project (Ajax Push Engine) >>> > Official website : http://www.ape-project.org/ >>> > Git Hub : http://github.com/APE-Project/ >>> > >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "APE Project" group. >>> To post to this group, send email to [email protected] >>> To unsubscribe from this group, send email to >>> [email protected] >>> For more options, visit this group at >>> http://groups.google.com/group/ape-project?hl=en >>> --- >>> APE Project (Ajax Push Engine) >>> Official website : http://www.ape-project.org/ >>> Git Hub : http://github.com/APE-Project/ >> >> -- >> You received this message because you are subscribed to the Google >> Groups "APE Project" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/ape-project?hl=en >> --- >> APE Project (Ajax Push Engine) >> Official website : http://www.ape-project.org/ >> Git Hub : http://github.com/APE-Project/ >> > -- You received this message because you are subscribed to the Google Groups "APE Project" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ape-project?hl=en --- APE Project (Ajax Push Engine) Official website : http://www.ape-project.org/ Git Hub : http://github.com/APE-Project/
