View comments | RSS feed

Attaching JavaScript behaviors to HTML form objects

You can attach JavaScript behaviors stored in Dreamweaver to HTML form objects such as buttons.

To attach a JavaScript behavior to an HTML form object:

  1. Select the HTML form object.
  2. In the Behaviors panel (Window > Behaviors), click the Plus (+) button and select a behavior from the list.

    For more information, see Using JavaScript Behaviors.


Comments


thestephman said on Jun 27, 2006 at 8:09 PM :
i've made a form, and now i made a submit button. How can i make it so when you click the submit button it e-mails the information to an E-mail address?
BlazingSun said on Jul 3, 2006 at 6:36 AM :
I too would like to know how to have form data sent by email. The documentation has been very helpful in building a web site until this point. There is good discussion on how to set up the form but there is very little help for how to do anything with the data. FrontPage has a simple pick for emailing form data. I'm surprised that DreamWeaver 8 doesn't seem to have this ability (or that the ability is not more obvious).
Marcus Lynch said on Nov 15, 2006 at 6:24 AM :
I am not the only person who wants to send forms data to an email address
- you actually write in the Help documentation that this is possible - but then
you do not actually give any guidance at all as to how to achieve this. This
seems to be an area where you have dumbed down your product!. Please
can you advise?
milbrann said on Apr 11, 2007 at 6:33 PM :
How do I send form data to an email address? I saw the question asked several times using LiveDocs, but how do I find the answer.

Thanks in advance for your quick reply... like usual SHORT deadline.
chucknado said on Apr 12, 2007 at 9:23 AM :
For information on getting data from a form into an email, see the following Support Center article: http://www.adobe.com/go/tn_14853.
No screen name said on May 15, 2007 at 7:56 AM :
I too need to send form data by email. I believe this requires a javascript but I'm not a gearhead. I can't find anything that makes sense to me. This software is easy enough for people like me but then the help text stops where we need it most, like right now.
No screen name said on Aug 16, 2007 at 1:12 AM :
God yes. I've been looking everywhere for a simple template where the customer enters in his contact info, and it is sent to my email address.
bobby-b said on Sep 25, 2007 at 12:04 AM :
There are really 2 issues here:

1) if the sender uses an email client on their computer (like Outlook) then they can push a button on your form with mailto:your address.com in the code behind the button BUT
2) many people now use web mail like hotmail.com. If they click your email button they will get an error because a client is not set up on their computer. This requires a lot more work. You must creat a form, then upload the form and a mailer scipt and you are better off searching one on the net because they are not easy to create if you are reading this message.

You can see an example of this at http://mcgymswim.com/mcgymswim07/Pages/contact_us/index.html

Good luck

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/dreamweaver/8/using/41_for23.htm