Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.
-
kscap #1
Closing File in DW Catch Close Event
I will post this in the extensions forum since i would think this has to exist
somewhere.... I want to be able to run some code when a user closes a file in
the DW IDE. Is there such a command/method/file that gets called when a file is
closed? Such the same fashion as there are commands for _onOpen or _afterSave
in the commands folder.
thanks
kscap Guest
-
item editor for catch event.
I make the app, it used data grid editor item is combo box, if i want to catch event 'change' of ComboBox with id="inlineEditor" but i don't known... -
Catch 22 with file removal or mysql queries?
I'm probably missing something here. I want to write some code to: Delete the contents of a folder if that happens successfully carry out a... -
Catching event before a window close
Hi, The DocWatch SDK example shows how to catch the events when a document closes. However these events occur after the window is alreasy closed.... -
Browser Close Event
which event is fired when a browser is closed. i want to call asp page which deleet some files on the server. i tired using onunload event but it... -
how to detect Browser close event.
Hi, I have a web Application that must be licensed. When Customer buys 2 licensees for my application they can only have 2 copies open at a time.... -
ChrisBank #2
Re: Closing File in DW Catch Close Event
I don't think there's a specific handler of onClose of a users document. If you
explain more of what you'd like to do when the document closes there may be
some workarounds you can use.
Chris
Adobe Dreamweaver Engineering
ChrisBank Guest
-
kscap #3
Re: Closing File in DW Catch Close Event
[q]Originally posted by: ChrisBank
I don't think there's a specific handler of onClose of a users document. If
you explain more of what you'd like to do when the document closes there may be
some workarounds you can use.
Chris
Adobe Dreamweaver Engineering[/q]
basically when the user closes the file i wanted to write some information to
an independent text file.
kscap Guest
-
kscap #4
Re: Closing File in DW Catch Close Event
i was able to point the close menu to a file which included my script t write
to a file.
However, is there a way to get at the action or code behind when a user
clicks the "x" to close the indivudal file tab? and also to grab a hold of the
same thing when they click the "x" to close the application?
kscap Guest
-
ChrisBank #5
Re: Closing File in DW Catch Close Event
Maybe you gather all the information you need in an _onOpen command and write it all out at once in a Shutdown command when the application quits.
Chris
Adobe Dreamweaver Engineering
ChrisBank Guest
-
Tom Muck #6
Re: Closing File in DW Catch Close Event
I had a similar problem with my Extra File Functions toolbar. I ended up
using the onSave command files instead, which basically gives you a similar
thing.
--
--
Tom Muck
co-author Dreamweaver MX 2004: The Complete Reference
[url]http://www.tom-muck.com/[/url]
Cartweaver Development Team
[url]http://www.cartweaver.com[/url]
Extending Knowledge Daily
[url]http://www.communitymx.com/[/url]
"kscap" <webforumsuser@macromedia.com> wrote in message
news:f5bo8r$ff0$1@forums.macromedia.com...>i was able to point the close menu to a file which included my script t
>write
> to a file.
>
> However, is there a way to get at the action or code behind when a user
> clicks the "x" to close the indivudal file tab? and also to grab a hold of
> the
> same thing when they click the "x" to close the application?
>
Tom Muck Guest
-
kscap #7
Re: Closing File in DW Catch Close Event
The onSave command doesnt help me in this situation because i need to key off
when the user closes the file(s) or application.
i noticed that there is the Exit Ctrl+Q in the file menu but i cannot seem to
locate this menu item in the menus.xml file. Is it labeled as something else?
or is it included in a different file?
Also, once again is there anyway to get at the code behind when the individual
"x" is clicked on each file or the "x" on the application itself?
thanks
kscap Guest
-
ChrisBank #8
Re: Closing File in DW Catch Close Event
I don't think there's a way to know exactly when a file is closed. You can keep
a global list of opened files and periodically use dw.getDocumentList() to see
when a file is no longer open. Then you'll know it was closed sometime between
your current check and your previous check.
Chris
Adobe Dreamweaver Engineering
ChrisBank Guest



Reply With Quote

