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

Read about menu commands in the DW API help documents, or at
http://livedocs.macromedia.com/dreamweaver/8/extending/wwhelp/wwhimpl/js/html/wwhelp.htm
Tom Muck
http://www.tom-muck.com/
"Byron Adams" <[email protected]> wrote in
message
news:eoct4b$m74$[email protected]..
> 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
>

Similar Messages

  • Are there any events associated with a Blocks Scrollbar?

    I'm using a multirecord block and its associated scrollbar. When the records are scrolled using the scrollbar, record focus doesn't necessarily change but the position of the record within the block does.
    Are there any events available to monitor the activity of the blocks own scrollbar?
    regards
    Malcolm

    Hello
    Sorry , there are no events associated with the ScrollBar.

  • Are there any events to script a component when dragged and dropped into the parsys area?

    are there any events to script a component when dragged and dropped into the parsys area?

    The cq:listeners node of a component's cq:EditConfig has a number of events that fire with relation to the edit mode drag'n'drop stuff. You would probably want to hook one or more of the insert ones (beforeinsert, beforechildinsert, afterinsert, afterchildinsert).

  • Are there any other templates available besides those that come with numbers?

    Are there any other templates available besides those that come with Numbers?

    Hi David,
    If you have Numbers '09 there is a Checking Register template that might suit.
    Numbers can open Excel templates and documents. Do a web search for checking register spreadsheet.
    Regards,
    Ian.

  • After updating to ios 5, my calendar sometimes freezes when entering a new event. I have tried syncing but it doesn't fix the problem. Are there any bug fixes for this? Any ideas would be great thanks, I don't really want to have to reset everything!

    After updating to ios 5, my calendar sometimes freezes when entering a new event. I have tried syncing but it doesn't fix the problem. Are there any bug fixes for this? Any ideas would be great thanks, I don't really want to have to reset everything!

    Try to reset the iPod by  pressing the home and sleep button for about 10sec, until the Apple logo comes back again. You will not lose data doing a reset, but it can clear some glitches after installing new software or apps.

  • I have Photoshop CC and I'd like to make an event flyer.  Are there any tutorials, templates, help???

    I have Photoshop CC and I'd like to make an event flyer.  Are there any tutorials, templates, help???

    Since your question is about Photoshop, I've moved it to the Photoshop General forum.

  • Are there any good fax programs that work with Efax besides Efax Messenger

    I just signed up for a free months trial of Efax. I downloaded the Efax Messenger program which seems to work well except for the fact that it does not save any fax packages (on my computer) that I send out. This is an important needed feature. If I send out a package of 5 or 6 files to someone I need to be able to look up what I've sent them. The only way I can do this is to put all the files in a folder named for that particular fax, then put that folder in a second folder that is labeled faxes, then fax the files from the folder by Efax. Quite a process. I called Efax and was told that this feature was only available for a Windows Machine (Efax, catch up!)
    Are there any other programs that are easy to use and at least as good as the Efax Messenger that have that feature?
    We are traveling in a sailboat, don't have a land line. We only have a wifi internet connection when they are available, (internet cafes, etc.) or sometimes at anchor using long range wifi. I don't have the luxury of going online to check faxes all the time, hence the necessity of having them on the computer.
    Any help appreciated.
    Dan

    Just to be clear, though, reducing the resolution of an LCD can have a negative effect on image quality. LCDs have an optimal "native" resolution and setting the resolution below that native level results in a poorer quality image.
    Leopard claims "resolution independence" - I have not tried it yet, but if you read the description of this feature, you will note that it applies to the user interface elements. Granted, that's often what you notice the most (i.e. the problem with reducing the resolution below native for an LCD is that the text in Finder, all of the menu bar items, etc., looks "fuzzy"). By appropriately scaling the UI elements, Leopard overcomes the limitation. But the "fuzzyness" will still apply to non-UI things that are displayed - i.e. images. Since based on your posts you will be working with images primarily, high-res vs. standard is still a choice I'd recommend considering carefully, and ideally by trying them both side-by-side.
    Ps. Thanks for awarding points!

  • Create Project Web App Instance - Failed to find Project Site object. Are there any database mounted?

    Hi
    New Installation. Sharepoint 2013, Project Server 2013 and SQL Server 2008 SP1 (another box).
    When I try to create Project Web App Instance, I get 
    Provisioning 'PWA': Post provisioning setup failed. Exception 'Microsoft.SharePoint.SPException: Failed to find Project Site object. Are there any database mounted?
     Followed by:
    Failed to provision site PWA with error: Microsoft.SharePoint.SPException: Failed to find Project Site object. Are there any database mounted?
    Already tried reinstalling the whole farm to no avail. Farm Admin account is used to do everything within this process.
    Thanks in anticipation.

    Hi
    I got the same error when provisioning the PWA
    Log Name:      Application
    Source:        Microsoft-SharePoint Products-Project Server
    Date:          8/29/2013 11:58:12 AM
    Event ID:      6966
    Task Category: Provisioning
    Level:         Error
    Keywords:     
    User:          abc\administrator
    Computer:      mycomputer
    Description:
    Provisioning 'PWA': Post provisioning setup failed. Exception 'Microsoft.SharePoint.SPException: Failed to find Project Site object. Are there any database mounted?
       at Microsoft.Office.Project.Server.Administration.ProvisionFeatureEventHandler.FeatureActivated(SPFeatureReceiverProperties properties)
       at Microsoft.SharePoint.SPFeature.DoActivationCallout(Boolean fActivate, Boolean fForce)
       at Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent, SPFeaturePropertyCollection props, SPFeatureActivateFlags activateFlags, Boolean fForce)
       at Microsoft.SharePoint.SPFeatureCollection.AddInternal(SPFeatureDefinition featdef, Version version, SPFeaturePropertyCollection properties, SPFeatureActivateFlags activateFlags, Boolean force, Boolean fMarkOnly)
       at Microsoft.SharePoint.SPFeatureCollection.AddInternalWithName(Guid featureId, Int32 compatibilityLevel, String featureName, Version version, SPFeaturePropertyCollection properties, SPFeatureActivateFlags activateFlags, Boolean force, Boolean
    fMarkOnly, SPFeatureDefinitionScope featdefScope)
       at Microsoft.SharePoint.SPFeatureCollection.AddInternal(Guid featureId, Version version, SPFeaturePropertyCollection properties, Boolean force, Boolean fMarkOnly, SPFeatureDefinitionScope featdefScope)
       at Microsoft.SharePoint.SPFeatureCollection.Add(Guid featureId)
       at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.EnsureProvisioningFeature(SPSite site)
       at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.CreateSite(ProjectProvisionSettings provset)'.
    Later found that the service application where I was trying to provision the PWA, it was not associated with the web-application.

  • Is there any event that triggers when you switch between components?

    is there any event that triggers when you switch between components?
    like for example... when i switch between components, i need a function to fire everytime i switch...
    ive tried show, hide, and initialize... and none of them work...
    any ideas or help is greately appretiated!!

    Depends on what you are trying to do,
    you have mouseover and mouseout and mouseclick events which you can use on the component and write code to deal with what you want to happen when you change focus. You have keypress event which would allow you to monitor tabbing between components, remember that in most events the currentTarget and target values will give you the information you need to handle component interaction.
    so
    [Bindable] private var CurrentObject: Object; <-------  use this as a pointer to what ever object you are currently focused on or just to indicate things have changed
    addeventListener(MouseEvent.CLICK,myCompponentSwap);
    protected function myComponentSwap(e:event): void
        if (CurrentObject !=e.currentTarget && CurrentObject != null)
             do what you want becuase a component switch just happened
        CurrentObject = e.currentTarget;
    Hope this gets you started.
    David

  • Is there any event in windows universal app (wp8.1&win8.1) that fires when screen locked and unlocked with in the app?

    Hi All,
    Is there any event in windows universal app (wp8.1&win8.1) that fires when screen locked and unlocked with in the app
    Right now, I am using this below mentioned event
    Window.Current.VisibilityChanged +=
    CurrentWindow_VisibilityChanged;, but it fires even when app relaunches.
    Please anybody help me to solve this issue.

    Thanks for your early reply. but, those are system triggers used in background task. I want an event that fires when screen gets locked. like this...(a networkstatuschangedevent)
    NetworkStatusChangedEventHandler
    networkStatusCallback =
    newNetworkStatusChangedEventHandler(OnNetworkStatusChange);

  • Are there any other enhancements in noise reduction tools in CS6

    Are there any other enhancements in the noise reduction tools besides the improvement mentioned of the spot healing brush. Are there improvements on the click and pop removal tool and the noise reduction in the spectral editing view. Quite anxious to know...

    Paul:
    Welcome to the Apple Discussions. There is a hidden feature for changing the Redeye and Retouch tool size:
    How to Change the Size of the Retouch and Red-Eye Removal Tool
    Type Caps lockControl9
    Undo caps lock
    Click on the Retouch or Red-Eye Removal tool
    The tab key will toggle between cursor types, a cross or a circle
    The "[" and "]" keys decrease or increase the size accordingly.
    NOTE: Using the "{" "}" keys will will change the value next to the circle and that represents the degree of change or intensity that the tool imparts on each pass.
    Also check out the tip at the end of my signature for backing up the library database file on a frequent basis.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application, iPhoto dB file backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Are there any difference between fx. the Nvidia FX3800 and GTX 260?

    Does anybody understand why I fell frustrated and confused about all this videocard discussions?
    Some tells me that the FX3800 is a better card - more pro - stabillity etc. than low-price cards - like GTX 260/285/295 - and some tells me that GTX 260 = FX3800. I read on other webpages about how people are having problems having their GTX 260 recognized as a FX 3800 (not in PPro but by Nvidia software). Other places tells about how to softmod GTX 260 to a FX 3800. Some tells me that there is a big difference between these cards - others they are almost alike - same GPU etc. I read that the difference between GTX 260 and FX 3800 is only the looks of it from outside - inside they are alike - and that apart from that only drivers are different.
    I have ordered the FX 3800 - believing it will perform better and more stable and give me really good playback rendering inside PPro CS5 compared to my GTX 260. If I get the same performance and stability by just changing two lines in a textfile with my old GTX 260 I feel cheated...I hope this is not happening.
    Someone from Adobe or Nvidida - please tell us - what there is a differnece between fx. the GTX 260 and the FX 3800 besides from the outside look and some drivers? If there is no difference between them - I can not see any other reason for only supporting the FX cards than $$$...If there are a difference in Quadra/FX favour - and I sincerly hope so -  I understand why you choose Quadro cards - but if they are just alike inside - I just feel we have all been mislead. I could have saved my money...time will show - I get the FX 3800 in a few days...can´t return it (danish rules when you buy it as a company) - so I´m 1000$ short this month...:(
    I would feel much more comfortable in having ordered the FX 3800 if someone from Adobe could tell me excactly how much better FX 3800 is from the GTX 260 - apart from being supported and the GTX is not. And if there is more in it than just changing a simple textfile? Are there any more things going on inside PPro - deep inside - that affects performance with FX cards besides from two lines in a textfile? Who can help answering that question - and I mean really answering it in serious way - not just saying - off course the FX is better - because its more expenssive.
    Haven´t we all experienced this in other situations? Like buying a car? Fx. Inside SKODA FABIA is a VW engine like the ones used in much more expensive VW cars. Only difference is the name and the outside look - and some comfort. The engine is the same - and in a way you could say that from an engine-point-of-view - the cars are alike. But you pay for comfort.
    Is the same thing going on here? I pay more for FX 3800 for the looks of it from the outside and some software-drivers that makes it more stable - but inside it is just like GTX 260? So from a graphic-performance-GPU-point-of-view I actually have two cards that are alike and I reaaly am paying for software and not hardware?
    /Morten

    You are right -. and I keep spanking myself in the head with a wet towel.
    I will lie in my bed - thinking of the nice new bicycle I could have bought instead of the FX 3800....;-)
    No seriously - I know what I have done - and maybe I have done right - I don´t know? Time will show and I will sell or buy.
    What I am frustrated about is the fact that I actually just decided to buy FX 3800 because Adobe and Nvidida toold me too -  to get support for MPE and now it seems that my old GTX 260 is much like the FX 3800 if not the same inside? And I am frustrated about that it is possible to change a line in a simple textfile and suddenly get support for the GTX 260 to play MPE. This fact only put more lit on the conspiracy-fire about Adobe and Nvidia having made a simple software-trick to make some cards work others not = making a lot of money on fools like me...
    You must admitt it is a rather tempting conclusion - if one is in the conspiracy-mood. Well - I try to think good about people. And Adobe convinced me at last that I needed the FX 3800 card. So I did order it eventually - because I need the MPE NOW - Can´t wait - having so bad performance and issues with PPro 4 - been so frustrated about edditting for almost ½ a year now - constantly having issues etc. And I am going to start new big project in 7 days. Have just spend 2000$ on upgrade to Master Collection and have making thoughts about wich card to buy long time ago - the GTX 285 or FX 3800 - to get the MPE support. And same day I order I suddenly see that the softmod makes my old GTX 260 to a FX 3800. And other posts claim that the cards are the same inside. No wonder I get frustrated - others must be the same.
    So what I am trying to say is that: I feel like Adobe and Nvidida is not being honest with us. If it turns out that the only thing Adobe has done is making a simple textfile to make cards supported or not by enteringior changing the names of the cards inside the textfile - and nothing else....And if fx. a softmoded GTX 260 turns out to perform excactly the same and be as stable as a FX 3800 to 5-6 x the price - I will feel cheated and feel like a stupid fool.
    I certainly do not hope this is what is going on. But it seems no one can help me but myself - testing and trying these cards - and I will try to post my results in this forum - so others might have easier tomake a choice...
    I´l be back....
    Cheers

  • Are there any PC cards which have sample and hold capability

    Are there any PC A/D cards which have sample and hold capabilities up to a 10 Khz sampling rate which we are interested in for modal testing of engine structures. Also if this type of card is available what would be the maximum input channel count of this card. We would be interested in the highest count available up to 64 channels.
    A second question: We currently have a 64 channel PCI 6071 capable of 1.25 MS/s throughput. If we are using all 64 channels what would be the interchannel delay between the first and last recorded channel and at what frequency would we have to be sampling to even be able to see the affect of the interchannel delay of this specific card.
    This issue has been debated wi
    th in our group and your insight would be appreciated as you are the experts in this field.

    Dear Sir,
    Thank you for using NI Developer Zone.
    National Instruments has a product line designed specifically for acquisition of dynamic signals, it is called DSA - Dynamic Signal Analyzers. In according to the description of your application the card that best fits your needs is the NI-4472 that is available in PCI and PXI format. This card is able to acquire 8 channels simultaneously, as opposed to the regular DAQ cards that have a single A/D converter and a multiplexer. The NI-4472 has 8 Delta-Sigma A/D converters one per channel, what results in a better performance than having a single A/D converter in combination with a sample and hold and a multiplexer. To Acquire 64 channels you would have to have 8 boards and synchronize all 64 channels. The Synchronization process is very simple and with a couple of software calls we can synchronize as many as 112 channels for simultaneous acquisition at 102.4K samples per second per channel.
    Regarding your second question, the PCI-6071 will sample between channels in a single scan at the maximum sample rate of the board (1.25 MS/s) but the
    scan rate, i.e. the rate in which the same channel is sampled is defined by the user. Being that said, we can conclude that the interchannel delay will be the inverse of the 1.25 MS/s clock, or 0.8 micro seconds.
    For a 1 KHz sine waveform, this represent a phase delay of 0.288 degrees between consecutive channels. For a channel list of 64 channels each one having the same 1 kHz sine waveform, the phase delay between the first and the last waveform will be 18.432 degrees.
    I really recommend the NI-4472 as a very good solution for your application, besides that the combination of the NI-4472 with LabVIEW and the sound and vibration toolset will give you a tremendous tool to solve not only your immediate need but also provide you a system that will be easily modified and adapted for future needs.
    If you need more info, feel free to contact me and I can give you more details about this product.
    Call 1 800 IEEE488 and ask to speak with the Computer Based Instruments (CBI) support team.
    Best Regards.
    Omar De Andrade
    Applications Engineer - Computer Based Instruments
    http://www.ni.com/support/

  • New Themes are there any

    Hello are there any other themes available besides those comeing with APEX 3.0.
    The Theme used in ORACLEs MetaLink would be very nice and similar to our own corporate look and feel.
    regards
    friedrich

    You can create your own theme, very similar to Metalink. It is a bit of work but the Metalink
    page is not so complex. If you save the complete HTML page, you will get all the
    corresponding .css files and the most of the graphics localy. It is a good basis to start with.
    Denes Kubicek

  • Are there any INI or other files I can modify to increase available memory?

    I have a new CPU (Intel I7 - 950 with 8GB of memory) and I'm running Elements 9.0.  I have a slide show that is just under 20 minutes long and I'm trying to create a WMV file with the highest resolution.  The create output starts and gets to about 58% and stops.  It never creates a file.  I go the lessor resolution and it works.  Are there any INI file parameters or other file attributes I can tweak to give the application more resources so I can produce a WMV slide show?  I used to create 40-50 minute slide shows with an older version of the software without any problems, it just took a while to run.  I cannot believe I don't have enough resources to get this created, but I don't know what I need to do.
    I have the same problem with smaller slideshows.  I have to restart my system, open Elements and run the slideshow build just to get a 9 minute show produced at the max resolution.  It will NEVER work if I try to do ANYTHING else first.  This is really getting annoying...  Any suggestions - besides using a lower resolution or getting verion 10?
    Thanks...

    Your i-device was not designed for unique storage of your media. It is not a backup device and media transfer was planned with you maintaining a master copy of your media on a computer which is itself independently backed up against loss.  To use a device with a new computer you transfer the content from the old computer (or its backup) directly to the new computer, not the device to the new computer. Media syncing is one way, computer to device, updating the device content to the content on the computer, not updating or restoring content on a computer. The exception is iTunes Store purchases which can be transferred to a computer.
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer - http://support.apple.com/kb/HT1848 - only purchases from iTunes Store
    For transferring other items from an i-device to a computer you will have to use third party commercial software.  See this document by turingtest2: Recovering your iTunes library from your iPod or iOS device - https://discussions.apple.com/docs/DOC-3991

Maybe you are looking for

  • How can I get an accurate count of computers (workstations) logged in to my SQL Server database?

    We license our software by number of workstations. I have a query that I have used for years to get an accurate count of the workstations logged in to my SQL Server database. For simplicity, all users use the same login name/password. This is built i

  • Iphone and 3 ipods not registering with iTunes since upgrading to version 10.4!

    Good day and thanks for your help.  AppleCare has been unable to solve or identify my problem.  Since upgrading to version 10.4 I am unable to have my iphone or ipods be recognized in iTunes.  I have deleted and reloaded iTunes four times, as instruc

  • Sharing music from laptop to Imac duplicates in library

    Everytime my daughter or wife download music to laptop then I update library on Imac it duplicates the whole library again. I just got rid of exact duplicates on Imac, so now my question is how do I transfer between the two with out transfering the w

  • Drag and Drop in List

    Hi All, Am using List control to display the data and also the itemRenderer .I set the attributes, DragEnabled,DropEnabled,DragMoveEnabled to true and also have the Trash icon to remove the Items from the list. In the ItemRenderer am displaying the d

  • Document Error CO-PA

    Hello all, i trying to post a billing(credit memo), but the system cannot created the CO-PA document, if we use the tcode KE4ST we can see the error "Document "5590010275" is not profit-related and thus could not be transferred", i would like to know