<button> not available in dropdowns?
Hello,
It seems that when I use a <button> element to trigger my form submissions they do not appear in the DataAssist Event Trigger dropdowns.
Is this something that can be solved?
Thanks.
Hello,
It seems that when I use a <button> element to trigger my form submissions they do not appear in the DataAssist Event Trigger dropdowns.
Is this something that can be solved?
Thanks.
do you mean input type="button" form elements?
these cannot be used for triggers in data assist, because a button element type will not actually submit the form.
the button element type does not send anything to the server, it can be used to send a clear command to the browser, or used to add onclick events, but it wont send anything to the server when clicked.
Hi Jason,
I'm talking about using these buttons to submit my form:
<button type="submit" class="positive"><img src="/images/icons/tick.png" alt=""/>Upgrade Account!</button>
They certainly submit the form on 'any post' but if I want to target the specific button press.. it is not available.
Thx.
because this button is missing a name, and value attribute:
<button type="submit" class="positive">
Without a name or value attribute, it cant be added to the list.
change it to:
<button type="submit" class="positive" name="myButton" value="myvalue">
I have changed the button as follows:
<button type="submit" class="positive" name="UpgradeAccount" value="UpgradeAccount"><img src="/images/icons/tick.png" alt=""/>Upgrade Account!</button>
It still does not show up in the list. :)
use this instead:
<input type="image" class="positive" name="UpgradeAccount" value="UpgradeAccount" src="/images/icons/tick.png" alt="Upgrade Account!" />
The image input does not style like the button type, which is why I am using it.
See: rediscovering-the-button-element/ for your reference.
Stylable form buttons without the need to create a graphic each time you need a new button. :)
for now, you will need to create the page using the regular input type="submit" to create the trigger code, then change it to the button element type you are trying to use, as long as the name doesn't change this will work.
I have added a feature request to have button element types added to the form data bindings.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.