I do delays for an auto-complete combobox before sending request;

basically the idea is to use a setTimeout(function, 200) instead of directly calling your server side method.
the function takes all the parameters you'd pass into your server side code and another class variable counter.  Everytime the function is called, increase the counter.

in your function, check to make sure that the class variable counter is equal to the counter that was passed in.  If they are then the user hasn't typed in the last 200 ms and you should call your server side method.  Otherwise return (as another request will hit your function shortly)

Regards,
Keith

On 5/18/06, dhnriverside <[EMAIL PROTECTED]> wrote:

Hi guys

We've got a number of places on our intranet with a Google-suggest
style system for finding Contacts, etc. It works great, and has been
running on my development server for a few months.

However, we put it on the production server, and after a day of use we
got an IIS Worker Process crash, we restarted IIS and it seemed fine,
and then the server died completely!

As far as I can tell, because of the way users were searching, it was
firing loads of requests at the server. Instead of hitting one key,
they'd type a name (therefore causing loads of requests), and then the
server was working, and they thought it wasn't doing anytihng, so they
pressed delete loads of times to clear the search, of course causing a
load of other requests!

Could the IIS Worker problem be caused by that first of all? And has
anybody got any suggestions as to how we can delay sending the requests
until they've finished typing, or there's a gap or something.

Thoughts welcome!

Cheers, Dan.



--~--~---------~--~----~------------~-------~--~----~
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