Ask a Question related to Dreamweaver AppDev, Design and Development.
-
Dsrt #1
Multiple Actions per Button
I have a submit button that, when clicked, will send an email to a specific
email address (already working) and I would like it to redirect to a different
page as well. Is this possible and if so, how?
This is on an asp page and the submit button is in a form.
Thanks in advance.
Dsrt Guest
-
master button actions inherited by other btns
Hey there The topic name speaks for itself: how do I code "slave" buttons to follow script of "master" button? I have 50 state buttons on level 0... -
2 Movie Actions for Same Button
I've included an example of the problem I'm having here. On Over the static electricity starts, which is fine - but on clicking the mouse button I... -
Calling functions from Button actions
<? function func1() { } function func2() { } function func3() { } -
[PHP] Calling functions from Button actions
I would assume you are referring to PHP functions since that is the nature of this list and since PHP only really executes on a web server, and since... -
button actions
Hi all, quick question, I need to do two things for a presentation (published as a windows projector .exe file); 1. create a button that will... -
Manuel Socarras #2
Re: Multiple Actions per Button
after the mailing code use Response.Redirect "URL"
HTH,
manuel
Dsrt wrote:> I have a submit button that, when clicked, will send an email to a specific
> email address (already working) and I would like it to redirect to a different
> page as well. Is this possible and if so, how?
>
> This is on an asp page and the submit button is in a form.
>
> Thanks in advance.
>Manuel Socarras Guest
-
rpmoore #3
Re: Multiple Actions per Button
There are a couple ways to do this easily. 1) if your mail script is written in
vbscript (ASP) then just add a redirect line at the end of it:
Response.Redirect('targetpage.htm') 2) if you are using the html markup
'mailto' the write a simple javascript: <script language='JavaScript'
type='text/JavaScript'> <!-- function doSomething() {
location.href='mailto:webmaster@mycompany.com'; location.href='/index.asp'; }
//--> </script> and add an onClick event to the submit button: <input
type='submit' name='Submit' value='Submit' onClick='doSomething()'> *there are
occasions when you might also want to write to a database and send an email,
then redirect the page. If you use DW server behaviors to insert/update a
record, just add the email code after that and put the Response.Redirect after
the mailform is sent, not when the db is written to...so the redirect is the
last thing. Hope this helps, Richard
rpmoore Guest



Reply With Quote

