Suggestion #7508
form.noFunctionButton
| Status: | Needs Feedback | Start date: | 2010-04-28 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - | |||
| Has patch: | Tags: | |||
| Votes: | 0 |
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
Updated by Soren Malling about 3 years ago
Søren Malling wrote:
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?!
Updated by Bastian Waidelich about 3 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?
Updated by Soren Malling about 3 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
Updated by Christian Mueller almost 3 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.
Updated by Bastian Waidelich almost 3 years ago
- Tracker changed from Feature to Suggestion
- Project changed from TYPO3.Fluid to Fluid - ViewHelper - Incubator
- Category deleted (
ViewHelpers)
Updated by Bastian Waidelich almost 3 years ago
- Subject changed from A "no function" button viewhelper to form.noFunctionButton