Git Product home page Git Product logo

Comments (5)

dyve avatar dyve commented on September 3, 2024

Can do, put on the list

On Tue, Mar 20, 2012 at 01:50, Chris Basham
[email protected]
wrote:

I'd like to attach some sort of markup that would inform the user when there are no results from the server (determined by an empty array server output). Currently, the only way I see to determine this is to check the data length from a custom processData function, since there's no other callback. Is this the preferred way? It would be nice to have a <div> already created and positioned where the $results DOM is, which displays when there's no results. This would enable something like what Facebook does:

Facebook Empty Results


Reply to this email directly or view it on GitHub:
#31

from jquery-autocomplete.

dyve avatar dyve commented on September 3, 2024

I'll do this but it takes a little more time than expected. Please have some patience :-)

from jquery-autocomplete.

basham avatar basham commented on September 3, 2024

Absolutely. My head was spinning a bit thinking about proper implementation. I would be astonished if this feature was a simple 20-min upgrade. Good luck.

from jquery-autocomplete.

hugodouchet avatar hugodouchet commented on September 3, 2024

Hi Dyve,

Thx for your work on this plugin. What about this feature ?
I'd like to add some default values to be displayed with or without results ... Any advice ?

from jquery-autocomplete.

Xion avatar Xion commented on September 3, 2024

I worked around the lack of this feature in the following way:

  • Check if there are any results in processData
  • Add a "fake" result item if so
  • Interpret the fake item in showResult, rendering your custom DOM

In the process, I had to worked around issue #96, but in the end it works out pretty well.

from jquery-autocomplete.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.