are there any event handlers besides onClick?

Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.

  1. #1

    Default are there any event handlers besides onClick?

    hi,
    i've made a command for my extension which is called by a menuitem in the
    File menu via dw.runCommand("myCommand.html");
    this .html is actually a dialog which includes a some javascript, i want
    this javascript to be executed everytime
    the command is run (everytime someone clicks the menuitem) instead of just
    once at startup.

    here is a simplified version of my command, i want that alert to be executed
    everytime the menuitem gets clicked not just when it gets loaded at startup
    --------------------------------------------------------------

    <!-- MENU-LOCATION=NONE -->
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
    />
    <title>My Extension</title>
    <script>
    alert('hello!');
    </script>
    </head>
    <body>
    <!--Markup for the dialog-->
    </body>
    </html>

    --------------------------------------------------------------

    is it possible? thanks in advance =)

    Byron


    Byron Adams Guest

  2. Similar Questions and Discussions

    1. Event handlers: How exactly do they work?
      I'm working on a C# serial connection. I'm talking to a device that's running embedded C. I have an event handler that handles incoming data....
    2. Event handlers called twice, or not at all
      Ok, sorry for the long post in advance, but I need an expert opinion here. I have already crawled through the groups via google and additionally...
    3. event handlers
      Does anyone know how to cause the cursor to advance to the next field on a form after the first field has been filled?
    4. Event handlers keep getting unregistered
      For some reason (and I wish I could say specifically when) studio.net keeps dis-associating my event handlers with their events. In a recent...
    5. crazy event handlers!
      it is in the buildTable(), which is executed in the Page_PreRender() event -Trevor "MikeB" <mailbox.google@mailnull.com> wrote in message...
  3. #2

    Default Re: are there any event handlers besides onClick?

    Read about menu commands in the DW API help documents, or at
    [url]http://livedocs.macromedia.com/dreamweaver/8/extending/wwhelp/wwhimpl/js/html/wwhelp.htm[/url]

    Tom Muck
    [url]http://www.tom-muck.com/[/url]

    "Byron Adams" <Byron.adams54@gmail.com> wrote in message
    news:eoct4b$m74$1@forums.macromedia.com...
    > hi,
    > i've made a command for my extension which is called by a menuitem in the
    > File menu via dw.runCommand("myCommand.html");
    > this .html is actually a dialog which includes a some javascript, i want
    > this javascript to be executed everytime
    > the command is run (everytime someone clicks the menuitem) instead of just
    > once at startup.
    >
    > here is a simplified version of my command, i want that alert to be
    > executed everytime the menuitem gets clicked not just when it gets loaded
    > at startup
    > --------------------------------------------------------------
    >
    > <!-- MENU-LOCATION=NONE -->
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    > <html xmlns="http://www.w3.org/1999/xhtml">
    > <head>
    > <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
    > />
    > <title>My Extension</title>
    > <script>
    > alert('hello!');
    > </script>
    > </head>
    > <body>
    > <!--Markup for the dialog-->
    > </body>
    > </html>
    >
    > --------------------------------------------------------------
    >
    > is it possible? thanks in advance =)
    >
    > Byron
    >

    Tom Muck Guest

  4. #3

    Default Re: are there any event handlers besides onClick?

    Thanks for the response tom, i found out i had to use the receiveArguments
    function in my case.

    also sorry the subject header wasnt parallel with my question i didnt notice
    until after i had sent it to the group..

    thanks :)

    Byron Adams
    [url]http://byron-adams.com[/url]


    "Tom Muck" <tommuck@NO-SPAM-hotmail.com> wrote in message
    news:eog3kb$f3m$1@forums.macromedia.com...
    > Read about menu commands in the DW API help documents, or at
    > [url]http://livedocs.macromedia.com/dreamweaver/8/extending/wwhelp/wwhimpl/js/html/wwhelp.htm[/url]
    >
    > Tom Muck
    > [url]http://www.tom-muck.com/[/url]
    >

    Byron Adams 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