Giter Club home page Giter Club logo

jquery-plugin-w3w-autosuggest's People

Contributors

andycurriew3w avatar franszo avatar quantafire avatar tsamaya avatar vicchi avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jquery-plugin-w3w-autosuggest's Issues

using proxy method

Hi, I am Bob Hutchinson and I have integrated what3words with a project of mine, https://www.drupal.org/project/getlocations
I am trying to add the jquery autosuggest plugin to the getlocations project and have succeeded (but not yet committed) in getting it to work OK but when I try to add the proxy method (which I already use for the regular lookups) it fails to validate. If I disable validation it works but when I enable it the message "Please enter a valid 3 word address." switches off when an item is selected but then immediately switches back on again, even though the w3w string is valid and has been entered into the form input box.
I have fetched and installed typeahead and validate separately, the problem also occurs with the bundled version.
Looking at jquery.w3w-autosuggest-plugin.js and using console.log I can see that the variable lastValidatedSuccess remains false so isSuccess also remains false thus triggering the error message. I tried setting isSuccess to true in the if conditional at line 422 but that failed and as I am not sure what lastValidatedSuccess is for I decided it was time to contact the author.
Just to reiterate, the proxy method itself works, fetches data and returns it as json to the browser where it is displayed immediately below the input box and selecting one puts it into the input box and when I appy that to the map it goes to the right place on the map. I can disable validation but it is a nice feature and I would like to have it enabled.
There is a demo of getlocations with what3words enabled at https://test.arwystli.net/getlocations_all
This does not yet have the autosuggest applied to it but uses the proxy method to fetch the data and apply it to the map.

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.