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

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

IntraWeb 15.2.52


Regards
JuergenS


Attached Files
.zip   EditAsyncKeyUp.zip (Size: 8.87 KB / Downloads: 1)
Reply
#2
Are you sure? I can't recreate it with IW 15.2.53
Reply
#3
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.
Reply
#4
Wink 
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?
Reply
#5
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
Reply
#6
I've created a new thread "Intraweb documentation"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)