Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1295 (closed defect: fixed)

Opened 12 years ago

Last modified 12 years ago

Change submit-button's default ID

Reported by: joshua Owned by: alberto
Priority: normal Milestone:
Component: ToscaWidgets Version: trunk
Severity: normal Keywords:


The ID default's to "submit", which results in overriding the form's submit-method at the clientside (DOM).

In expression (JavaScript?):

typeof(document.forms[0].submit) == 'object'

But JavaScript?-developers rather expect (and often need):

typeof(document.forms[0].submit) == 'function'

See also:  http://groups.google.com/group/turbogears/browse_frm/thread/e887eae4878cb33b/

Please either:

  • change the submit's default ID to eg. "submit-button"
  • allow users to change the ID
  • make the submit-button optional
  • remove the id

Change History

comment:1 Changed 12 years ago by alberto

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

Fixed at [2577]. Thanks for reporting it.


Note: See TracTickets for help on using tickets.