Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.
-
Byron Adams #1
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
-
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.... -
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... -
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? -
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... -
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... -
Tom Muck #2
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
-
Byron Adams #3
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



Reply With Quote

