Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

javascript onpaste issue  RSS feed

 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,

the following code contains jsf snippets but the issue is totally a javascript issue

ok so here's my case: where running the following page and pasting any text into the text field, the first alert prints nothing. when i pate the same copied text again, i get the first pasted one and so on. what i want is to get the pasted text each time, can you please tell me how?

Here's the source of the page:


Thanks in advance,
 
Cesar Loachamin
Ranch Hand
Posts: 90
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vassili.

It is not really a question of jsf, I could solve your problem in a simple way using a timer, Use the function like this:
It works for me
Regards
Cesar
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!