aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Problem in form submitting. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Problem in form submitting." Watch "Problem in form submitting." New topic
Author

Problem in form submitting.

prasad kulkarni
Ranch Hand

Joined: Mar 19, 2006
Posts: 66
I have a form which has one dropDown. There are 2 table-rows ( i.e. <tr> >
which I am loading on the change of drop down value.
After selecting the value '1' in drop down , the CASE_ONE tr is loaded, and when I hit the ENTER key, the form is submitted. This is perfectly fine.

Now when I selects the value '2' from dropdown, tr CASE_TWO is loaded and at this time, if I hit the ENTER key , the form is not getting submitted.

If I alter the positions of the trs CASE_ONE and CASE_TWO, the tr, placed earlier in the code works fine after hitting the ENTER key, but the other tr does not work properly.

Here is my code. Please help me to get out of this.

[ February 15, 2008: Message edited by: prasad kulkarni ]

scjp, scwcd
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60077
    
  65

Please be sure to use UBB code tags when posting code to the forums. Unformatted code is extermely hard to read and many people that might be able to help you will just move along. Please read this for more information.

You can go back and change your post to add code tags by clicking the .


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Alaa Nassef
Ranch Hand

Joined: Jan 28, 2008
Posts: 460
Well, I believe that hitting enter is like clicking on the first submit button, so when you hide it, I believe that hitting enter will do nothing, since the first submit button is hidden.

Well, I'm not hundred percent sure, but I believe that this is the case.


Visit my blog: http://jnassef.blogspot.com/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in form submitting.
 
Similar Threads
How to pass values from struts select tag to another struts tag?
cant display the table
Toolbar with color pallette ,different font styles and font sizes
URGENT Help needed on JavaScript.
Urgent:: How to get values into a combo-box dynamically.......