Monthly Archives: October 2010

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