innoq / simplete.obsolete Goto Github PK
View Code? Open in Web Editor NEWROCAful autocompletion
Home Page: http://innoq.github.io/simplete/
ROCAful autocompletion
Home Page: http://innoq.github.io/simplete/
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>
Awesomplete might provide sufficient guidance
this might be an incentive to switch to CommonJS in order to use https://github.com/FND/uitil
value.length === 0
- e.g. useful for user's favorites, recent history etc.)data-formaction
, data-formmethod
, data-scope
.pending
, placement of results container)debounce
bonusit might be useful to prefetch default results to avoid any lag when the user first focuses the input field
while Simplete should Just Work on reasonably modern browsers, we should check (including subtle details like de27cc8) and mention as much in the README
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)
@bengillies suggested Airbnb's presets might be a reasonable start
Hey @FND
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|...]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.