Giter Site home page Giter Site logo

simplete.obsolete's People

Contributors

fnd avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

simplete.obsolete's Issues

form elements inside search result list

Forms inside search results are not possible. The browser deletes nested forms.

<li data-value="info.pdf">
    <tt>info.pdf</tt>
    <small>PDF, 249 kB</small>
    <form action="http://google.com" method="get">
        <input name="q">
        <input type="submit">
    </form>
</li>
<li data-value="index.html">
    <tt>index.html</tt>
    <small>HTML, 43 kB</small>
    <form action="http://google.com" method="get">
        <input name="q">
        <input type="submit">
    </form>
</li>

documentation

  • why?
  • distinction suggestions vs. results (the former prepopulate the field's value, for the latter values don't matter)
  • default results (i.e. if value.length === 0 - e.g. useful for user's favorites, recent history etc.)
  • data-formaction, data-formmethod, data-scope
  • DOM structure (e.g. .pending, placement of results container)
  • expected server response
  • HTML might also be rendered client-side, independently (requires additional hook?)
  • JavaScript API (both wrapper function and constructor)
  • debounce bonus

prefetching

it might be useful to prefetch default results to avoid any lag when the user first focuses the input field

browser compatibility

while Simplete should Just Work on reasonably modern browsers, we should check (including subtle details like de27cc8) and mention as much in the README

  • IE versions
  • mobile/touch devices

avoid jQuery dependency

would be nice to go pure-DOM, or at least ensure Simplete works with Zepto instead of requiring jQuery

we should probably have tests first though (cf. #11)

Custom Headers

Hey @FND ๐Ÿ˜„ For our current project we (@mjansing & me) added the ability to render a page without its layout by providing an HTTP header called 'layout' with the value 'false'. We want to use it in both simplete as well as pjax. We therefore need the ability to set custom headers in the HTTP call done by simplete. Are you ok with that? If so, we will implement it ๐Ÿ˜„

improve demo

current behavior seems unpredictable and thus confusing, as there's no obvious connection between input and results

might use Pretender or Stubby to filter HTML client-side after requesting a static page from the server

while we're at it, an omnibox might make for a better demo, combining results from various categories (e.g. users, wiki pages etc.)

also, an incremental tokenization demo might be convincing: pa[sta|rmesan] [AND|OR] to[matos|...] [AND|OR] [lemon|...]

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.