Hi!
I've taken it upon myself to test a hypothesis concerning speech recognition / voice input and highlighting information, as a part of my undergraduate thesis in informatics.
Having basically little to no experience at all in JavaScript I'm hoping you could point me in the right direction, please. I'm only quite decent with HTML/CSS.
I've got the voice input part pretty much sorted, at least for now, and what it will do, with a little help from AppleScript, is press the corresponding keystrokes for the name that's uttered. I could make it press enter etc too if necessary.
I thought of making a local webpage with a text input form on it that would tell a script to show (or superimpose something on top of) a certain image based on the different names in the form.
And by that I'm thinking something like this:
If 'Sweden' in form name='the only form on the page' - show 'image 2'.
If 'Norway' in form name='the only form on the page' - show 'image 3'.
And then, if a person physically clicks the Enter key when a certain image is shown, that could lead them to a closer map or something, on there.
So what the script will have to do, is accept a not submitted forms value and show corresponding image, and then if the text in the form is submitted it would open a new page for example, but what new page is dependent on what's in the field at that time.
An example of something that's similar to this is
www.prisjakt.nu where you can type in a well known brand or product name in there and the search function shows you different articles
as you're writing in the field. I tried to look it up, what they were using, and to me it looks like it's JSON.org script something? Either way I'm finding it hard to make out what part of it is specifically about the function that I'm looking for. A friend of mine said it could be jQuery, though it was unclear as to how he knew that. Anyway I've tried to read up on that but can't really find what I'm looking for here.
I've been reading about JavaScript and jQuery and the like but unfortunately I haven't found anything much a layman can understand about this to put it in a context to get a decent picture. Possibly because I don't really know what I should be looking for.
If I could just find 2 tutorials with these two elements in them I'd be all set I think.
Any help about this, any help at all, is greatly appreciated!
Best regards! / Herje W