Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>Hardware>>How can I use "enter" to submit a form in a frame using javascript?

How can I use "enter" to submit a form in a frame using javascript?

byucoug2
11-24-2004, 09:26 PM
Hi,

I'm making a web page using multiple frames. One frame has an animation of a tiger fingerspelling a word (using American Sign Language handshapes). When the user thinks they know the word, they input it in a text box in a second frame (which has all of the useful javascript code to detect if the correct answer was given or not). When I run the "input box" code by itself, when I hit "enter", it moves on to the next word just fine. When it is in the frame, however, something seems to be getting confused. It resets the game basically rather than submitting the guess. I think it has something to do with the frames - so I think I need something in the main frames page saying "if you get an enter, push the button in the input box frame".

By the way, this is the only button in any of the frames.

-BYUCoug2

hemebond
11-24-2004, 10:56 PM
Oh dear. The link to your site seems to have gotten lost on the way to my computer. Could you post it again please?

byucoug2
11-24-2004, 11:17 PM
My apologies.

It is currently at www.tobermorey.com/deaf/fsanime/fstest/easy/easyGame_new.html

-BYUCoug2

hemebond
11-25-2004, 12:24 AM
I'm not touching that until your get rid of the anti-right-click script and create some valid code.

Start testing in Firefox. My Javascript console is tellingmy_form is not defined

byucoug2
11-25-2004, 06:07 AM
Since the anti-right-click code is there at the request of the owner of the website, it is staying. "my_form" is declared at the bottom of the file but don't worry about it. Thank you for looking anyway. Sorry to take up your time.


 

TOP

For more info

setting a minimum size
Auto Preview of Image 
Refresh with a query s
JS Validation obsolete
Javascript Pop up func
Slide show transitions
I'm a newbie...please!
how to write coding in
Advanced Debug Info 
.js file doesn't work 

News Archive

Adding Graphic To Text
re-direct form after s
pop up window controls
Clock on homepage - He
passing a param from a
Password Procection wi
document.title in same
focus onload 
Counting Wrong from Ri
Help needed on how to 

Related stories:

A little help with javascript IF/THEN
help me to resolve this checkbox problem
Is VBScript "invisible"?
does anyone use Venkman?
So confused
View Images in a Directory Script...?
working with a java applet

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics