Related Content
Creating Tic Tac Toe In JavaScript Part 1: The Game
Tic Tac Toe (or noughts and crosses) is a good game to create when learning game development as it has simple rules and a known win state.
Getting Up And Running With Nightwatch.js
Nightwatch.js is an end to end testing framework, written in JavaScript. It can be used to test websites and applications and uses the W3C WebDriver API to drive modern browsers to perform the tests.
In this article I will look at setting up Nightwatch.js in a project and getting started with writing tests.
Creating A Reading Progress Bar In JavaScript
Adding a progress bar to the top of the page is a simple way of showing the user how far down the page they have read. There is a scroll bar on the right hand side of the page on my current device, but that isn't always present on all devices.
Using Shadow DOM
When I first heard the term "Shadow DOM" I had to laugh at the name. I had visions of a cloak and dagger HTML element that would only be seen on the dark web. Or some sort of nefarious shadow site that was the after effect of a hack.
Langton's Ant In JavaScript
After looking at Conway's game of life I have been looking at other forms of cellular automata. This lead me to discover Langton's ant, which is a different kind of cellular automata where an agent (namely an ant) is used to turn the squares on or off as it travels around a grid.
Local And Global Variables In JavaScript
I have seen a lot of this sort of thing, so though I would put together a quick lesson in JavaScript variable scope. There are some important differences between local and global variables in JavaScript that will cause grey hairs if you don't know what's going on.
Comments
Submitted by alfred smith on Thu, 04/16/2009 - 16:09
PermalinkSubmitted by philipnorton42 on Fri, 04/17/2009 - 07:52
PermalinkI just improve slightly of the code
The function doSearch will require two parameter which is tableId and queryId
...rest will be the same
Submitted by asipo on Sun, 03/06/2011 - 08:56
PermalinkSubmitted by Andro on Sun, 09/02/2012 - 04:12
PermalinkSubmitted by emma on Fri, 01/18/2013 - 06:39
PermalinkSubmitted by philipnorton42 on Fri, 01/18/2013 - 09:04
PermalinkSubmitted by Marco on Sun, 08/02/2015 - 18:57
PermalinkSubmitted by shubham on Wed, 10/26/2016 - 10:28
PermalinkHi, thanks for this great code. Is there a way to find results NOT equal to the search term.
For instance if I type "Boston" in the the search box, it will find all rows with Boston. But if I put an exclamation mark in front of Boston, "!Boston" , it will find everything except Boston. Or better still, two boxes, one for include and one for exclude. So searching for Boston would return:
Boston-Brookline
Boston-Dorchester
Boston-Southie
And then typing Southie in the exclude box would eliminate Boston-Southie from the results.
thanks very much in advance.
Submitted by Roger McCarrick on Mon, 02/15/2021 - 20:08
PermalinkHi Roger,
Yes, you should be able to do that by swapping the display:none attribute. For example, swap this:
To this:
That should hide anything that doesn't match in the list.
Submitted by philipnorton42 on Mon, 02/15/2021 - 21:43
PermalinkWhy does the script not work when the table contains header <th> rows?
Submitted by Alex on Thu, 01/26/2023 - 15:40
PermalinkIt's not something I thought about when I wrote this script back in 2009. It was 14 years ago and I've learnt a lot since then.
You think it's worth having anther bash at it?
Submitted by philipnorton42 on Fri, 01/27/2023 - 16:04
PermalinkAdd new comment