Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Showing a Dialog at Startup

Guest
Nov 12, 2007 Nov 12, 2007
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
TOPICS
Extensions
551
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Nov 13, 2007 Nov 13, 2007
"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.

Translate
LEGEND ,
Nov 13, 2007 Nov 13, 2007


"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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 13, 2007 Nov 13, 2007
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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 13, 2007 Nov 13, 2007
"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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 13, 2007 Nov 13, 2007
LATEST
Thanks, Joris.

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

Leif
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines