Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIWEdit OnAsyncKeyUp

I noticed that TIWEdit's OnAsyncKeyUp event fires twice when I enter the first character!

IntraWeb 15.2.52


Attached Files
.zip (Size: 8.87 KB / Downloads: 1)
Are you sure? I can't recreate it with IW 15.2.53
BTW, always a good idea to set DelayKeyEvents to True in IWEdits and descendant classes. This will avoid that dozens of requests are sent in a short time to the server.
You're right, it's OK in IW 15.2.53   [Image: wink.png]

But I would like to understand why only the first OnAsyncKeyUp event can generate dozens of requests, but all others not.

Is the DelayKeyEvents property intended for key debouncing?

Would you like me to ask ATOZED a very basic question?
Hum... we fixed something regarding to multiple events firing, but it was fixed in 15.2.52...

Yes, the DelayKeyEvents property is exactly a debouncing mechanism. Instead of firing continously for each keypress/keyup/keydown event, a single event is triggered when there is a small pause in typing. This is overall a much better way of writing web applications (Especially because there is no guarantee that when you generate hundreds of almost simultaneous requests, they will be received and processed by the web server in the same order as they were generated)

Regarding your question, yes, shoot
I've created a new thread "Intraweb documentation"

Forum Jump:

Users browsing this thread: 1 Guest(s)