Hi all.
I have a question about javascript.
I have to use the post function in the javascript codes located in the html file header to send data in the queryString variable to the autocom.jsp file located in the local server and then get data back from my local database using the callback function, function(data) { }.
My problem is that when I input c in the input field of the html page,
testing ok is displayed on the webpage, even when in my database I do not have a data in the last name column (called last in the database) which start by letter c. This should never have occurred since data.length >0 is not true in this particular case.
Could somebody please help me with this issue?
Thanks
The html file is search.html below:
Below is the autocom.jsp file: