I've resolved that the option this.options.source is not getting
defined.  I'm going to assume that my calling function is wrong.  Any
thoughts?

Thanks, David

function auto_complete(id){
jQuery("#"+id+"TimeCode_ID","#list").autocomplete({
//$("#TimeCode_ID").autocomplete({
cache: {limit: 15},
source: function(request, response) {
$.ajax({
dataType: "JSON",
url:"./JSON/labortype.JSON.asp",
data: {
style: "full",
maxRows: 15,
name_startsWith: request.term
},
success: function(data) {
response($.map(data.LaborType_ID, function(item) {
return {
label: item.name + (item.LaborType_ID ? ", " + item.LaborType_ID : "")
+ ", " + item.LaborType,
result: item.LaborType_ID
}
}))
}

})
},
minLength: 1,
change: function(event, ui) {
log(ui.item ? ("Selected: " + ui.item.label) : "Nothing selected,
input was " + this.value);
},
open: function() {
$(this).removeClass("ui-corner-all").addClass("ui-corner-top");
},
close: function() {
$(this).removeClass("ui-corner-top").addClass("ui-corner-all");
}
});
};

--

You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=.


Reply via email to