Category Archives: Javascript

Create customised auto-complete

$(document).ready(function() { $(“#apex-owner-autocomplete”).keyup(function() { var term = $(‘#apex-owner-autocomplete’).val(); if (term.length > 2) { $.ajax({ //the servlet address to get json data url: “<c:url value=”/ajax/apex-parent-name.htm”/>”, dataType: “json”, data: { //parameters that need to forward with the url name_startsWith: term, filterName:”PARENT_NAME” }, … Continue reading

Posted in Javascript | Leave a comment

JQuery: Auto Complete Plugin

Have found the JQuery is really handy to duel with complex javascript tasks. In this article, I am going to introduce the auto-complete plugin.   First of all, like many other JQuery plugins, you need to have the JQuery library … Continue reading

Posted in Javascript | Leave a comment