TYPO3 Flow Base DistributionPackagesApplications

Suggestion #7508

form.noFunctionButton

Added by Soren Malling over 5 years ago. Updated almost 5 years ago.

Status:Needs Feedback Start date:2010-04-28
Priority:Should have Due date:
Assigned To:- % Done:

0%

Category:-
Target version:-
Has patch: Tags:

Description

I really think Fluid needs a "no function" button

http://w3schools.com/tags/tag_button.asp

This button could be used a long with ex. a Javascript Framework, to customize a function when the button is clicked.

Ex:

HTML:
<form>
<input type="button" name="showInfo" ud="showInfo" />
</form>

JS (ExtJS):
Ext.get('showInfo').on('click', function() {
Ext.get('infoBox').fadeIn();
});

If accepted I will take the time to write the viewhelper

History

#1 Updated by Soren Malling over 5 years ago

Søren Malling wrote:

http://w3schools.com/tags/tag_button.asp

Wrong link, would have pointed to

http://w3schools.com/tags/tag_input.asp

showing the different types for ex. input field that might be interesting to have viewhelpers for?!

#2 Updated by Bastian Waidelich about 5 years ago

  • Status changed from New to Needs Feedback

We were discussing about this one and asked ourselfs, why would you need a view helper for this?

#3 Updated by Soren Malling about 5 years ago

Bastian Waidelich wrote:

We were discussing about this one and asked ourselfs, why would you need a view helper for this?

Mentioned in the description:

In order to apply JS functionality to a button inside a form, without submitting the form or add nasty "return false" to a submit button

#4 Updated by Christian Müller about 5 years ago

I think you just need to write plain html in your template to get what you want:

<input type="button" name="showInfo" id="showInfo" />

Should be no problem.

#5 Updated by Bastian Waidelich about 5 years ago

  • Tracker changed from Feature to Suggestion
  • Project changed from TYPO3.Fluid to Fluid - ViewHelper - Incubator
  • Category deleted (ViewHelpers)

#6 Updated by Bastian Waidelich about 5 years ago

  • Subject changed from A "no function" button viewhelper to form.noFunctionButton

Also available in: Atom PDF