File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "submission problem" Watch "submission problem" New topic

submission problem

arjun rampal
Ranch Hand

Joined: Jul 08, 2005
Posts: 125
<script language="javascript">
function submitF()

<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" />

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

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
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.

subject: submission problem
It's not a secret anymore!