This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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