Showing a Dialog at Startup

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

  1. #1

    Default Showing a Dialog at Startup

    I'm running DW CS3 for Windows. I'm trying to write an extension which will
    show a dialog at start up. The "Extending Dreamweaver" manual says, "If you
    place a command file in the Configuration/Startup folder, the command runs as
    Dreamweaver starts up." I've done that. That code runs. It also says, "You
    can also show warnings, prompt the user for information, or call the
    dreamweaver.runCommand() function." Calling dreamweaver.runCommand() doesn't
    seem to work. I can put the same code in a command that is executed after
    startup and it works fine, but within my startup command, it seems like
    Dreamweaver just ignores my calls to runCommand().

    Quite specifically, my startup command contains:
    alert('before');
    dreamweaver.runCommand('myCommand.htm');
    alert('alert');

    I see the "before" and "after" alerts, but I don't see the dialog defined in
    myCommand.htm.

    Do you have a suggestion?

    Thanks,

    Leif

    leifw Guest

  2. Similar Questions and Discussions

    1. Printing without showing the printing dialog window
      hey - did you ever figure out a solution to the printing without dialog issue? i'm trying to get around the same problem myself. thanks! -jason
    2. ASP startup page invokes a file download dialog
      I'm relatively new to ASP.NET. I'm running it under Win XP Pro, using Visual Studio 2002.NET (haven't migrated to VS2003 yet). The ASP.NET...
    3. startup ...
      Hello, I noticed there are folders like: /etc/rc0.d /etc/rc1.d /etc/rc2.d .. .. ..
    4. Dialog Boxes Not Showing (Mult Monitors)
      have no way of returning to a dual monitor system right now if you can't hook up a 2nd monitor, follow the FAQ topic for deleting/resetting...
    5. Dialog Box
      I have XP home on my new notebook, I am trying to complete the updates from Windows. The Dialog Box opens with all the items that I want to...
  3. #2

    Default Re: Showing a Dialog at Startup



    "leifw" <webforumsuser@macromedia.com> wrote in message
    news:fhbdri$fki$1@forums.macromedia.com...
    > I'm running DW CS3 for Windows. I'm trying to write an extension which
    > will
    > show a dialog at start up. The "Extending Dreamweaver" manual says, "If
    > you
    > place a command file in the Configuration/Startup folder, the command runs
    > as
    > Dreamweaver starts up." I've done that. That code runs. It also says,
    > "You
    > can also show warnings, prompt the user for information, or call the
    > dreamweaver.runCommand() function." Calling dreamweaver.runCommand()
    > doesn't
    > seem to work. I can put the same code in a command that is executed after
    > startup and it works fine, but within my startup command, it seems like
    > Dreamweaver just ignores my calls to runCommand().
    >
    > Quite specifically, my startup command contains:
    > alert('before');
    > dreamweaver.runCommand('myCommand.htm');
    > alert('alert');
    >
    > I see the "before" and "after" alerts, but I don't see the dialog defined
    > in
    > myCommand.htm.
    >
    > Do you have a suggestion?
    >
    > Thanks,
    Just checking: your dialog command page DOES contain a form, I recall a form
    tag in the html file being required to show any dialog at all.

    Joris van Lier Guest

  4. #3

    Default Re: Showing a Dialog at Startup

    Yeah, thanks for asking. My command does have a form. I tossed a few input tags in for good measure. My dialog still doesn't show up.


    leifw Guest

  5. #4

    Default Re: Showing a Dialog at Startup

    "leifw" <webforumsuser@macromedia.com> wrote in message
    news:fhcnqk$bm2$1@forums.macromedia.com...
    > Yeah, thanks for asking. My command does have a form. I tossed a few
    > input tags in for good measure. My dialog still doesn't show up.
    As a work-around you can change your command to an _onOpen triggered command
    by appending _onOpen to the filename,
    then set a flag that you the next time to not show the dialog.

    Joris van Lier Guest

  6. #5

    Default Re: Showing a Dialog at Startup

    Thanks, Joris.

    That's an interesting work around. I'll give it a try.

    Leif
    leifw 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