Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Text input Event without submit - Directions please!
Old 04-21-2010, 05:29 PM Text input Event without submit - Directions please!
Junior Talker

Posts: 2
Trades: 0
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

Last edited by euro; 04-22-2010 at 08:44 AM..
euro is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-22-2010, 05:00 AM Re: Text input Event without submit - Directions please!
Junior Talker

Posts: 2
Trades: 0
"These two elements" as in;

A form function (?) that can change displayed information on the page depending on what names/words are in it without having to submit. It's on http://www.prisjakt.nu for example but I can't figure out what part of their huge script that is making just that. And a key difference here is that it does not have to be a search function as I can just write something along the lines of "if 'sweden' show 'image_2'; if else 'norway' show 'image_3'; if else etc etc".

I'd be very grateful for any help at all!

Regards / Herje

Last edited by euro; 04-22-2010 at 05:05 AM..
euro is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Text input Event without submit - Directions please!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.10256 seconds with 12 queries