Home > live-search

live-search

Live-search is a project mainly written in JavaScript, it's free.

== Live Search

Forked from http://andreaslagerkvist.com/jquery/live-search/

== Example Code

HTML

  <p>
      <label>
          Enter search terms<br />
          <input type="text" name="q" />
      </label> <input type="submit" value="Go" />
  </p>

JS

jQuery('#jquery-live-search-example input[name="q"]').liveSearch({url: Router.urlForModule('SearchResults') + '&q='});

== Changes

New configuration options

  • minLength: minimum number of characters
  • width: the number of pixels in the div-element of results. Can also be set to 'auto'.

Support for multiple search urls

$('#search).liveSearch({ url: ["one-search?q=", "two-search?q="] })

== License http://creativecommons.org/licenses/by/3.0

== Copyright 2008 Andreas Lagerkvist (andreaslagerkvist.com)

== Requires jquery, jquery.liveSearch.css

Previous:test