Hi all,
I have the following problem:
I have many forms that have 2 or 3 input type="image" to summit the form.
i.e.: Ok, Cancel, Previous, Next, ...
When the user press the <enter> key in one of the text fields the form is
sumited.
Ok it's normal but sometimes there is in the query string,
the coordinates of one of the button (generally the one I don't want
"cancel")
and sometimes no button information are present in the query string.
I really don't understand what can be the reasons for this behaviour.
Note: I am using IE 6.
Here is my first form: in this form when the user press enter the cancel
button is automaticely pressed
<html:form action="/contact/create/treatstep1" method="GET">
<html:hidden property="wizardKey"/>
<div id="edit-form">
<span class="title"><bean:message key="third.search.tabtitle"
bundle="third"/></span>
<div class="content">
<table class="tab">
<tr>
<td class="label">
<bean:message key="third.search.title" bundle="third"/>
</td>
<td class="edition">
<html:select property="title" styleClass="selectbox" tabindex="1">
<html:optionsCollection property="titleTypes" value="title"
label="title"/>
</html:select>
</td>
</tr>
<tr>
<td class="label">
<bean:message key="third.search.firstname" bundle="third"/>
</td>
<td class="edition">
<html:text property="firstName" styleClass="textbox" tabindex="2"/>
</td>
</tr>
<tr>
<td class="label">
<bean:message key="third.search.lastname" bundle="third"/>
</td>
<td class="edition">
<html:text property="lastName" styleClass="textbox" tabindex="3"/>
</td>
</tr>
</table>
<br/>
<table class="buttons">
<tr>
<td class="button-left"> </td>
<td class="button-center">
<div>
<html:image property="cancel" src="/images/buttons/Cancel.gif"
alt="Cancel wizard" style="border: none;"/>
</div>
<div>
<bean:message key="button.cancel" bundle="common"/>
</div>
</td>
<td class="button-right">
<div>
<html:image property="next" src="/images/buttons/Next.gif" alt="Next
step" style="border: none;"/>
</div>
<div>
<bean:message key="button.next" bundle="common"/>
</div>
</td>
</tr>
</table>
</div>
</div>
</html:form>
Here is my second form: in this one no button is pressed on pressing the
"enter" key
<html:form action="/contact/create/treatstep3" method="GET">
<html:hidden property="wizardKey"/>
<div id="edit-form">
<span class="title"><bean:message key="table.company.similar.search.title"
bundle="company"/></span>
<div class="content">
<table class="tab">
<tr>
<td class="edit" colspan="2" align="center">
<html:radio property="search" value="true"/> Search
<html:radio property="search" value="false"/> Create
</td>
</tr>
<tr>
<td class="label">Company</td>
<td class="edit">
<html:text property="companyName" styleClass="input" tabindex="1"/>
</td>
</tr>
</table>
<br/>
<table class="buttons">
<tr>
<td class="button-left">
<div>
<html:image property="previous" src="/images/buttons/Previous.gif"
alt="Previous step" style="border: none;"/>
</div>
<div>
<bean:message key="button.previous" bundle="common"/>
</div>
</td>
<td class="button-center">
<div>
<html:image property="cancel" src="/images/buttons/Cancel.gif"
alt="Cancel wizard" style="border: none;"/>
</div>
<div>
<bean:message key="button.cancel" bundle="common"/>
</div>
</td>
<td class="button-right">
<div>
<html:image property="next" src="/images/buttons/Next.gif" alt="Next
step" style="border: none;"/>
</div>
<div>
<bean:message key="button.next" bundle="common"/>
</div>
</td>
</tr>
</table>
</div>
</div>
</html:form>
Why do I have a different behaviour on this two forms?
How do you work with multiple image to summit forms and the <enter> key
pressed automatism?
Thanks a lot for any idea ?
Alban.
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager at postmaster.eim.ch.
**********************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]