close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

<button> not available in dropdowns?

Thread began 2/11/2011 6:28 pm by Andrew Read | Last modified 2/15/2011 11:36 am by Jason Byrnes | 1420 views | 11 replies |

Andrew Read

<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.

Sign in to reply to this post

Jason ByrnesWebAssist

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.

Sign in to reply to this post

Andrew Read

Hi Jason,

I'm talking about using these buttons to submit my form:

html:
<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.

Sign in to reply to this post

Jason ByrnesWebAssist

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">

Sign in to reply to this post

Andrew Read

I have changed the button as follows:

html:
<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. :)

Sign in to reply to this post

Jason ByrnesWebAssist

use this instead:

php:
<input type="image" class="positive" name="UpgradeAccount" value="UpgradeAccount"  src="/images/icons/tick.png" alt="Upgrade Account!" />
Sign in to reply to this post

Andrew Read

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. :)

Sign in to reply to this post

Jason ByrnesWebAssist

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.

Sign in to reply to this post

Andrew Read

Thank you.

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...