jri...@nd.edu
unread,Mar 6, 2015, 2:10:39 PM3/6/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sel...@googlegroups.com
I am trying to understand the documentation for select2 4.0 Data adapter, as i am preparing to migrate from 3.5.2
previously i did the following code, which broken down
1) looks at the element's val
2) if id is not blank , ajax call that returns additional data
3) callback
initSelection : function (element, callback) {
var id=$(element).val();
if (id!=="") {
$.ajax("index.cfm/tickets/select2get", {
dataType: 'json',
data: {
nd_event_id: $('#nd_event_id').val(),
passes: '<cfoutput>#rc.location#</cfoutput>',
},
}).done(function(data) { callback(data); });
}
},
How do i translate this to Data Adapter? I am not finding any helpful documentation on this, any help is greatly appreciated