Is there a way within Servoy webclient to execute a method when a user enters a carriage return within a text_area field?
Dean
// 1. webclient utils: grab ID of text area
// 2. webclient utils: register a servoy callback method
// 3. web client utils: add your own listener to a specific text area
$("#TextAreaID").keypress(function(e) {
if(e.which == 13) { // 13 == CR
alert('You pressed enter!'); // for debugging
// call registered servoy callback method here
}
});
Users browsing this forum: No registered users and 26 guests