[Dev] [DEV] - How to send a AJAX call when User finish typing at the textbox

2015-07-08 Thread Rajeenthini Satkunam
Hi all, Currently I am working on a task validating CRUD forms of Enterprise store publisher.So I need to check with the overview name is already exists or not.So I will make a AJAX call through server side to get the exactly matching asset in the publisher.I am using jQuery validation plugin as w

Re: [Dev] [DEV] - How to send a AJAX call when User finish typing at the textbox

2015-07-08 Thread Shakila Sivagnanarajah
Hi Rajeenthini, Can you please share the place, in which you are calling this function? On Thu, Jul 9, 2015 at 9:45 AM, Rajeenthini Satkunam wrote: > Hi all, > > Currently I am working on a task validating CRUD forms of Enterprise store > publisher.So I need to check with the overview name is a

Re: [Dev] [DEV] - How to send a AJAX call when User finish typing at the textbox

2015-07-08 Thread Thusitha Thilina Dayaratne
Hi Rajeenthini, I think you can use jquery focusout method to detect when the textfiled focus get put. That might help https://api.jquery.com/focusout/ Thanks On Thu, Jul 9, 2015 at 9:45 AM, Rajeenthini Satkunam wrote: > Hi all, > > Currently I am working on a task validating CRUD forms of Ent

Re: [Dev] [DEV] - How to send a AJAX call when User finish typing at the textbox

2015-07-08 Thread Himasha Guruge
Hi Rajeenthini, You could use a time out or .blur() ( user focus out from the text box) depending on your requirement. You could look into [1]. [1] how-to-trigger-an-event-in-input-text-after-i-stop-typing-writing

Re: [Dev] [DEV] - How to send a AJAX call when User finish typing at the textbox

2015-07-08 Thread Lakshani Gamage
Hi Rajee, You can use .onblur()[2] event also. [2] http://www.w3schools.com/jsref/event_onblur.asp Thanks, Lakshani On Thu, Jul 9, 2015 at 9:56 AM, Himasha Guruge wrote: > Hi Rajeenthini, > > You could use a time out or .blur() ( user focus out from the text box) > depending on your requireme

Re: [Dev] [DEV] - How to send a AJAX call when User finish typing at the textbox

2015-07-08 Thread Irham Iqbal
Hi Rajee, You can use a timer to call back. It will wait for sometime to check whether there is textArea.onkeypress and trigger callback. Reference[1]. [1] http://stackoverflow.com/questions/1620602/javascript-jquery-make-an-ajax-request-when-a-user-is-typing-in-a-textarea Thanks, Iqbal On Thu,

Re: [Dev] [DEV] - How to send a AJAX call when User finish typing at the textbox

2015-07-08 Thread Hasanthi Purnima Dissanayake
Hi Rajee, I think you can trigger the validation when the textbox looses it's focus. In jquery there is a focusout function. I think you can use it. Just a sample: $('#text1, #textarea1').focusout(function() { alert(this.id + " loose the focus"); }); Thanks, Hasanthi Dissanayake Software En

Re: [Dev] [DEV] - How to send a AJAX call when User finish typing at the textbox

2015-07-08 Thread NIFRAS ISMAIL
Hi there, for validation you can use a open source library bootstrapValidation JS . You can make call after validation is onsuccess. https://github.com/nghuuphuoc/bootstrapvalidator I have answer this question generally. Apologize me if any thing wrong with WSO2 APIs. Regards. *M. Nifras Ism