Just wondering if someone can help. I have a slight problem and have come up with a solution on paper, now I just need to transfer it into something that actually works!
What I want is to make a program or HTML page which does the following;
Contains a text-box and when a user types in a specific fault code, they are given information on how to clear the code. I have thought of just using Microsoft Excel, but I have about 100 different codes and would prefer it if I had something like "Please enter your problem code below" rather than a drop down box where users have to sift though to find the necessary code.
I know I could probably do this using if/when statements, but I want something that looks nice and is very intuitive to use,
I would use an HTML form, with a text input field for the user to enter their error code.
You could add some sort of "auto suggest" functionality, which would have the form make suggestions as they type (bit like Google).
You could then either display the end result when the user submits the form, or you when encounter an exact match.
One possibility would be to use the jQuery UI autocomplete plugin
This allows you to hard-code your error message codes into your JS file and might work quite well for a comparatively small amount of data.
That sounds cool.
But what might be even cooler, is to fetch the instructions for how to clear and resolve the code dynamically and insert them into the page using AJAX.
This would however, speak for the database method, as then you could store everything in one place.