CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Feature #37763

Submit on button click

Added by Rafal Brzeski 12 months ago. Updated 11 months ago.

Status:Resolved Start date:2012-06-05
Priority:Must have Due date:
Assignee:Reinhard Führicht % Done:

100%

Category:-
Target version:v1.4
Votes: 0

Description

please add click function for html <button> in jQuery ajax form,
currently INPUT[type='submit'] is only supported.

Sometimes <button> get more possibility for css styling and is a great alternative for INPUT[type='submit']

Associated revisions

Revision 63908
Added by Reinhard Führicht 11 months ago

New TS option "submitButtonSelector" for AjaxHandler_JQuery (resolves #37763)

Revision 63908
Added by Reinhard Führicht 11 months ago

New TS option "submitButtonSelector" for AjaxHandler_JQuery (resolves #37763)

History

Updated by Reinhard Führicht 12 months ago

  • Status changed from New to Needs Feedback
  • Assignee set to Reinhard Führicht
  • Target version set to v1.4

I dislike the idea of binding the event on all button elements in the form. Maybe the user has some other stuff going on when clicking on the button.

I suggest adding a new TypoScript option for that:

ajax {
  submitButtonSelector = .Tx-Formhandler INPUT[type='submit']
}

Quotes and double quotes can be escaped by Formhandler.

What do you think?

Updated by Rafal Brzeski 12 months ago

As I understand it will also works? :

ajax {
  submitButtonSelector = .Tx-Formhandler .btnSubmit
}

if yes, this will be cool

Updated by Reinhard Führicht 12 months ago

  • Status changed from Needs Feedback to Accepted

Rafal Brzeski wrote:

As I understand it will also works? : [...]

Yes, that was the idea.

The default value would be ".Tx-Formhandler INPUT[type='submit']" as it will work for most users.

Updated by Reinhard Führicht 11 months ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r63908.

Also available in: Atom PDF