I'm using the latest version of Ajax.NET Professional on my site. It's
being used for an upload progress indicator. The problem that i've been
encountering is that it will randomly stop responding after a while
during the upload. I've testing my code and it appears that Ajax just
stops calling the handler i've made for it.

Here is a link to the upload page on my site:
http://www.spikedhumor.com/upload.aspx

It requires registration so I made a demo account:

Login: spikedhumordemo
Pass: spikedhumordemo

Just head over to the upload page and click on Image upload then find a
big file (under 250MB) that isnt an image. The upload will run and if
it works, it'll come back stating you need to upload an image.
Sometimes it takes 2 minutes, sometimes it takes 20 minutes for it to
stop updating. It happens more in Firefox then it does in IE.

Here is a sample of the code that does the bulk of the updating:

---------------------------------------------------------------------

        function progressUpdate()
        {
                updateCounter++;

                // Determine action based on status
                switch (currentUploadStatus)
                {
                        case STATUS_COMPLETE:
                                // Upload Finished! Execute Completed Procedure
                                showCompleted();
                                break;
                        case STATUS_FAILED:
                                // Upload Failed! Reset the form elements
                                resetUpload();
                                break;
                        default:

                                if (waitingCallback == false)
                                {
                                        waitingCallback = true;

                                        // Request upload status object from 
.net and send to callback
                                        
ValenceWap.Classes.UploadProgress.GetStatus(uploadId,
progressUpdate_Callback);
                                }
                                else
                                {
                                        callbackTimeout++;

                                        if (callbackTimeout > 10)
                                        {
                                                uploadStatus.innerHTML = "In 
progress - CT";
                                                callbackTimeout = 0;

                                                waitingCallback = false;
                                        }


                                }

                                // Call the same function again in 1 second
                                window.setTimeout("progressUpdate()", 1000);

                                break;
                }

                uploadDebug.innerHTML = "Refresh Count: " + updateCounter;

        }

---------------------------------------------------------------------

Looks for any help on this!

Thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" 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/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---

Reply via email to