Skip to content

ajax call request #26

@gstlouisgit

Description

@gstlouisgit

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.")
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions