School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,420 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,527 people online right now. Registration is fast and FREE... Join Now!




How to make query to the server about status of a running work

 

How to make query to the server about status of a running work

cy163

29 Jun, 2009 - 05:15 AM
Post #1

New D.I.C Head
*

Joined: 29 Jun, 2009
Posts: 2

Hello ALL,

In my mxml code, I want to use a code snippet to query about the status of a work running at the server end. For example, the work is to calculate the product of two number.

in the server end, I use JAVA and JSP

CODE

for(int i = 0; i <1000; ++i)
{
   for(int j = 0; j<1000; ++j)
    {
         int Result =  i * j;
     }
}

There are 1000 * 1000 loops. I would like to show/update the working progress(How many loops have been executed) on the client every 0.02 seconds.

How can I achieve this by using Timer and HTTPService?
Please help.

This post has been edited by cy163: 29 Jun, 2009 - 05:17 AM

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/8/09 12:07AM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month