Ticket #423 (closed bug: fixed)

Opened 8 months ago

Last modified 1 month ago

jforms: id on generated tags should be more explicit

Reported by: laurentj Assigned to:
Priority: normal Milestone: Jelix 1.1 beta 1
Component: jelix:forms Version: 1.0
Severity: normal Keywords:
Cc: Php version:
Review: Hosting Provider:
Documentation needed: 0 Blocking:

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

03/05/08 10:45:30 changed by laurentj

  • review changed.
  • docneeded changed.

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

07/02/08 09:41:07 changed by bballizlife

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

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

07/20/08 01:07:15 changed by laurentj

  • status changed from new to closed.
  • resolution set to fixed.

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.)

Download in other formats: Comma-delimited Text Tab-delimited Text RSS Feed