Code Monkey home page Code Monkey logo

livecode-multi-search's Introduction

LiveCode-Multi-Search

Contrubutors, please use dev branch for any additions. Thank you.

LiveCode-Multi-Search

One Search box Eight sites searched Search across LiveCode Forum, Nabble Forum, StackOverflow, LiveCode Dictionary, LiveCode Lessons, GitHub, Github Gists and LiveCode Wiki all from one search box!

Filter Gist reults by extension Traverse back and forward through your searches

The online dictionary was created using the WebDocMaker by Brian Milby https://github.com/bwmilby/lc-misc/tree/master/WebDocMaker the output modified to accept url perameters.

The online dictionary is on my hosting. If you would like to have your own hosted dictionary, then generate the files using WebDocMaker and then at the end of the api.html file, replace

<script>
	$(document).ready(function(e)
	{
		setEdition('commercial');
		setActions();
		dataFilter();
		displayLibraryChooser();
		
		goEntryName('tLibraryName', 'tEntryName', 'tEntryType');
		document.getElementById("ui_filer").focus();
	});
</script>

with

< script >
function getURLParameter(e) {
    return decodeURI((new RegExp(e + "=(.+?)(&|$)").exec(location.search) || [, ""])[1]);
}
if (getURLParameter("search") === "") {
console.log("No URL param value found.");
} else {


document.getElementById("ui_filer").value = getURLParameter("search");
} </script>


<script>
	$(document).ready(function(e)
	{
		setEdition('commercial');
		setActions();
		dataFilter();
		displayLibraryChooser();
		
		goEntryName('tLibraryName', 'tEntryName', 'tEntryType');
		document.getElementById("ui_filer").focus();
		$('#ui_filer').keyup();
	});
</script

to allow passing of the search perameters and to force trigger the keyup event in the search input field.

You will also need to change the url here

--LC Dictionary put "https://2108.co.uk/LCDict/api.html?search=" & fld "Search" into tSearchLCDict set the url of widget "Browser LC Dictionary" to tSearchLCDict

which can be found in the maingroupid1032searchbuttonbehavior.livecodescript file

livecode-multi-search's People

Contributors

andypiddock avatar

Watchers

James Cloos avatar

Forkers

paulmcclernan

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.