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

#423 closed bug (fixed)

jforms: id on generated tags should be more explicit

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

Description

If the order of forms in a web page change, then the id of a form change. So it is impossible to design a form in a safe manner.

Change History (3)

comment:1 Changed 12 years ago by laurentj

  • Documentation needed unset

we could use the form selector, or add the possibility to name the form (an attribute in the xml file ?)

comment:2 Changed 12 years ago by bballizlife

I think adding and "id" attribute on the <form> tag is the simpliest way to go through.

<form id="myForm">...</form>

comment:3 Changed 12 years ago by laurentj

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

Fixed in the trunk. Now the id of the form is "jforms_module_formname". However, if they are same form duplicated into the same page, their id will be "jforms_module_formname", "jforms_module_formname1", "jforms_module_formname2"...

Id of controls are "jforms_module_formname_controlname" (or "jforms_module_formname1_controlname" etc.)

Note: See TracTickets for help on using tickets.