2013年10月11日星期五

Help Help ~ message reminding

Write a day and a half , check a lot of information , and what ajax json run out ... what are still not, talk about my issues now, hope to have experienced people to help give a better solution , or are there any more good middleware can be used, gets advice first thank you , really do not want to have to write c / s structure of the message listener service . .



ssh framework + sqlserver + tomcat 's b / s working platform ( similar to OA , but much smaller than that ) now want to get real-time or five minutes a server if my new task ( of course to access the database through the class action judgment ) , then the browser pop-up window to prompt to the user. Process that is this: the task subordinate superiors issued computer screen prompt , you can not real-time , lower-level browser does not do anything there will be prompt. . . What to do with ajax json day a variety of programs have over the ~

seek advice ~ ~ ~
------ Solution ------------------------------- -------------
on the page, use js, every five minutes to submit an action, action inside to check if there is a new task , and then were dealt with accordingly .

As for the page, you can use ajax no refresh the display processing results can also refresh the page. Look at your needs.

How regularly submit action, see for yourself to use setTimeout and setInterval .
------ Solution ---------------------------------------- ----
look using server push
------ Solution ---------------------------- ----------------

LZ test when the time interval is not piecemeal , and proposes to add a timestamp , or action that is the same request .
------ Solution ---------------------------------------- ----
use the spring to provide a timer to check whether a new task, if there will be a way ajax query results returned to the page ( this is based on the idea of ​​regular mail comes to mind ) , as to how to display on a page casually you
------ For reference only ---------------------------------- -----



you said exactly what I used today .... can not meet the demand
------ For reference only --------------- ------------------------
ls several thanks ~ ~ ~ I have resolved
using ajax request action efficient manner no problem ~
------ For reference only ------------------- --------------------
landlord share thiophene !

没有评论:

发表评论