Computing.Net > Forums > Programming > Java command help

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Java command help

Reply to Message Icon

Name: go_places_puterwize
Date: December 15, 2006 at 17:21:13 Pacific
OS: Windows Server 2003 Stand
CPU/Ram: P4/256
Product: GATEWAY/300S
Comment:

Hi again everyone,
This is another java question;
I need to know the command for getting the Return key...
I am making a script that grabs text from the textbox and when you click the button it shows what was typed.

Heres what I have:

<INPUT TYPE="textbox" name="string" value="Type Here" onReturn="">
<INPUT TYPE="BUTTON" name="close" value="click me" onClick=alert (string =" ")>


Curiousity only injured the cat.
I finished it off..
Muahahaha...



Sponsored Link
Ads by Google

Response Number 1
Name: toxic
Date: December 17, 2006 at 05:13:36 Pacific
Reply:

That's Javascript - not Java.


0

Response Number 2
Name: Michael J (by mjdamato)
Date: December 17, 2006 at 08:41:08 Pacific
Reply:

"That's Javascript - not Java."

Yeah, I told you that in your last post - and also that these types of questions belong in the web devlopment forum.

Java and Javascript are two entirely different things. By mislabeing your question you are decreasing your chances of getting good responses.

To answer your question, there is no onreturn trigger and "capturing" the return trigger, while possible, would be a bad idea. Just change your button to a submit button and enclose your fields within a form. Then make the action of your form do whatever action you want. Then the action would be performed when you submit the form - either by clicking the submit button, or by pressing return while in a field of the form.

Michael J


0

Response Number 3
Name: hclewk
Date: February 21, 2007 at 00:09:39 Pacific
Reply:

Yeah, what he said.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Java command help

Forfiles command help www.computing.net/answers/programming/forfiles-command-help/14526.html

Java RMI ??? Help... www.computing.net/answers/programming/java-rmi-help/6895.html

Java Program Help www.computing.net/answers/programming/java-program-help/5365.html