wood burning stoves*
The moose likes HTML, CSS and JavaScript and the fly likes submission problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "submission problem" Watch "submission problem" New topic
Author

submission problem

arjun rampal
Ranch Hand

Joined: Jul 08, 2005
Posts: 125
<script language="javascript">
function submitF()
{
document.facilityForm.submit();
}
</script>

<html:form action="/iata">
Facility: <html:select property="facility"

name="facilityForm" size="1" onchange="submitF()">
<html ption value="state">state</html ption>
<html ptions property="facilityList"

name="facilityForm" />
</html:select>

Hi I have a form conatining values which is submitting

though above script.
Now I have put a default value as "state"
when user select any other value excpet default then

corrosponding page is displayed but if user choose default

value there is error obviously.

I simply want that if user select default value "state"

nothing should be submitted.

please be specific if anyhting need to be chnaged in

javascript as no idea about javascript

regards
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
well you should probably have an option that says: "Pick something" if you are not going to have a button that allows them to pick it. Could use onblur, but that is rather a bad fix for the design.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: submission problem
 
Similar Threads
sbmission of form through javascript
javascript function
submission
value submit html:select
form submission