Multiple Actions per Button

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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. 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...
    3. Calling functions from Button actions
      <? function func1() { } function func2() { } function func3() { }
    4. [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...
    5. 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...
  3. #2

    Default 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

  4. #3

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139