zelect icon indicating copy to clipboard operation
zelect copied to clipboard

ajax call request

Open gstlouisgit opened this issue 7 years ago • 1 comments

I have tried working with the example from here https://github.com/mtkopone/zelect#ajax-loader-example

And nothing seems to work. There are javascript error from the start. Is this still maintained? Are there other clearer example for doing an ajax call?

I have tried only bare code to see like this and even the placeholder does not show even if it says there are no errors

placeholder: 'codes&nbsp;(<?php echo count($codes['products']); ?>)',
throttle: 150,
loader: function loader(term, page, callback) {
    console.log('loader');
},
renderItem: function renderer(item, term) {
  return console.log('renderer');
},
noResults: function noResultser(term) {
  return console.log('no result');
  //$('<span>').addClass('no-results').text(term + "didn't hit anything.")
}

gstlouisgit avatar Mar 17 '19 16:03 gstlouisgit

Hi. I haven't maintained this repo in 6 years, so it's very probably not compatible with current jQuery versions. I also don't have time right now to get into this, sorry.

But looking at the forks, looks like there are some that have been updated to work.

mtkopone avatar Mar 18 '19 11:03 mtkopone