developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#431 closed bug (fixed)

jforms should have a workaround for a ie6 bug on multiple submit

Reported by: laurentj Owned by:
Priority: normal Milestone: Jelix 1.0.1
Component: jelix:forms Version: 1.0
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Documentation needed:
Hosting Provider: Php version:

Description

With this

<submit ref="valider">
  <label>Veuillez valider</label>
  <item value="new">Sauvegarder et nouvelle saisie</item>
  <item value="list">Sauvegarder et retour à la liste</item>
</submit>

jforms generate two <button type="submit" name="valider">. On the submit, IE6 always send the value of the last submit button.

Change History (5)

comment:1 Changed 12 years ago by laurentj

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in the trunk and 1.0.x branch

comment:2 Changed 12 years ago by bibo

I saw your patch for this. It's fine but really it is a pain for css design to get rid of <button> tag.

Another way to workaround, could be to throw a ie6 only script beside the jforms.js to correct ie6 bad behavior. script could be something like that :

http://www.kopz.org/public/documents/css/multiple_buttons_ie_workaround.html

What do you think about it ?

comment:3 Changed 12 years ago by laurentj

The problem of this solution is that it doesn't work when javascript is disactivated. And I would like jForms to work in such case.

For CSS, if I add a class on submit buttons such class="jforms-submit", is this better ?

comment:4 Changed 12 years ago by bibo

class="jforms-submit" would be a convenient way to style all of form submit buttons in one rule. But as far as i know and unfortunately, input element would still limit styling possibilities. Specially for using graphics and rollovers on ie6. But hey, there are also scripts for overtaking those limitations i guess.

comment:5 Changed 12 years ago by laurentj

ok, I'm going to add this class. In 1.1 version, I'will improve jForms so anyone could create his own form builder, inherited from the default html builder or created from scratch. So you could use <button> for submit if you want.

Note: See TracTickets for help on using tickets.