Socket
Socket
Sign inDemoInstall

anysearch.js

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    anysearch.js

jQuery Plugin - anysearch.js <li>Direct search in browser</li> <li>Search without inputfield</li> <li>Activate searchfield optional</li> <li>Activate searchslider optional</li> <li>Supports barcode scanner</li> <li>Se


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

jQuery Plugin - anysearch.js

  • Direct search in browser
  • Search without inputfield
  • Activate searchfield optional
  • Activate searchslider optional
  • Supports barcode scanner
  • Searchfilter

Demo and project site

http://www.jevnet.de/anysearch-js-demo.html
http://www.jevnet.de/anysearch-js.html

Usage & Setup


1. Include the latest JQuery javascript library on your web page.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
2. Include anysearch.js and anysearch.css on your page.
<link href="css/anysearch.css" rel="stylesheet">
<script src="js/anysearch.js"></script>
3. Usage
$(document).ready(function() { 
    $(document).anysearch({
        searchFunc: function(search) {
            alert(search);
        }
    });
});

Options & configuration

You can find on the project site:
http://www.jevnet.de/anysearch-js.html

Example

$(document).ready(function() {
    $(document).anysearch({
        reactOnKeycodes: 'all',
        secondsBetweenKeypress: 1,
        searchPattern: {1: '[^~,]*'},
        minimumChars: 3,
        liveField: {selector: '#liveField', value: true},
        excludeFocus: 'input,textarea,select,#tfield',
        enterKey: 13,
        backspaceKey: 8,
        checkIsBarcodeMilliseconds: 250,
        checkBarcodeMinLength: 6,
        searchSlider: true,
        startAnysearch: function() {
            openHelp();
        },
        stopAnysearch: function() {
            closeHelp();
        },
        minimumCharsNotReached: function(string, stringLength, minLength) {
            alert(string + ' has ' + stringLength + ' chars! Minlength: ' + minLength);
        },
        searchFunc: function(string) {
            doAjaxSearch(string);
        },
        patternsNotMatched: function(string, patterns) {
            alert(string + ' must be in this form: ' + patterns);
        }, 
        isBarcode: function(barcode){
            ajaxCheckBarcode(barcode);
        }
    });
});

FAQs

Last updated on 03 Jan 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc