Answered
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
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
