Advertisement

paste event in DG Filter not working

Moderators: Calcifer, slothy

paste event in DG Filter not working

Postby anthonyaj » Mon Sep 21, 2009 5:00 pm

Hello i am using the DG Filter and realized if someone pastes text in the input field using right-click and paste the event will not be fired unless a key is pressed.

if you look in the code this is when you add an event listener :

addFilterEvents : function() {
this.html.filterField.addEvent('keyup', this.filter.bind(this));
this.html.filterField.addEvent('paste', this.filter.bind(this));
this.addEvents(this.listeners);
},

so the paste event is added but for some reason it is not triggered in IE and FF. i have been researching for a few days now and managed to fix it in FF by adding this event :
this.html.filterField.addEvent('input', this.filter.bind(this));

as for IE i wasn't able to make it work....

i was wondering if anyone can help with this

Thank you very much
anthonyaj
 
Posts: 1
Joined: Mon Sep 21, 2009 4:54 pm

Return to Questions regarding other scripts at www.dhtmlgoodies.com

Who is online

Users browsing this forum: Google [Bot] and 11 guests