cancel
Showing results for 
Search instead for 
Did you mean: 

Alert when have new task

vinaxwater
Champ in-the-making
Champ in-the-making
I want have javascript alert when have new task. Help me, please !!!
4 REPLIES 4

skontopo
Champ in-the-making
Champ in-the-making
I want have javascript alert when have new task. Help me, please !!!
I would also like to know how this is done please!
Anyone?

vinaxwater
Champ in-the-making
Champ in-the-making
I have got it. Solution is intergrate ajax with jsp and cookie
I have 1 file .jsp for server reponse + <script></script> in file PageTag.java for send request to file server reponse. Result will saved in Cookie for compare in after step.

Link for ajax and jsp: http://www.ics.uci.edu/~cs122b/projects/project5/AJAX-JSPExample.html

Regards.

mikeh
Star Contributor
Star Contributor
Alfresco Explorer already uses Mootools v1.1 for AJAX (and other DOM / "Web 2.0" effects) so you can re-use that library to save you having to duplicate a complete set of XHR handing JavaScript.

Mike

vinaxwater
Champ in-the-making
Champ in-the-making
I don't want go to deep into lib of alfresco and this issuse is simple it's check task to do if > parameter in cookie will show a alert("You Have New Task"). Therefore, I create a tab <script></script> in 10s send request to file .jsp server question total task to do and compare result with in cookie.

Link for ajax and DOM: http://blog.thegioiwebsite.net/bai-16-d%E1%BB%91i-t%C6%B0%E1%BB%A3ng-xmlhttprequest-dom-level-3-va-d...

Regards.