I currently have an asp.net /framework 4 / (VB) application.
One page has an AJAX timer control whose OnTick event is to run a subroutine which updates a value in a textbox. The subroutine takes the current value in the textbox as one of its arguments.
Textbox value = "0"
Sub fires with currentrecord=0
Does some processing
Increments textbox value by 1 (hopefully before Tick 2!)
Sub fires with currentrecord=1
Does some processing
Updates textbox value to 2 (hopefully before Tick 3!)
This subroutine varies in execution time typically between 2 and 10 seconds but potentially more. I've set the AJAX Timer to 20 seconds to ensure the sub runs in time but this can be very wasteful of time if a the sub completes long before the next timer tick.
How can I have an AJAX-like callback each time the previous sub completes and updates the textbox? I'd basically like this sub routine to repetitively fire until the textbox value does not change and update the textbox vlue in the browser each time.
I've tried adding an ontextchanged command to the the textbox but it appears to wait for the timer event.
The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX.
The logical flow for the problem should be:
Write an event handler for the first drop down box to get …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This Micro Tutorial hows how you can integrate Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease.
The following video show how to bind OSX Mavericks to …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…