I am looking for a DW API hook

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

  1. #1

    Default I am looking for a DW API hook

    Like _beforeSave, is there a DW API hook akin to _beforePreview (before
    previewing in a browser the page currently open in the Design Window)?

    btw, "_beforePreview" does not seem to work, but I am hoping there is
    some other term they chose for this.

    Anyone know?

    --

    E. Michael Brandt

    [url]www.divaHTML.com[/url]
    divaGPS | divaFAQ

    [url]www.valleywebdesigns.com[/url]
    JustSo PictureWindow

    --
    E Michael Brandt Guest

  2. Similar Questions and Discussions

    1. Re[2]: [PHP-DEV] hook cast_object handler in userspace
      Hello Marcus, Did you think of a better interface name instead of "Printable" ? Do you think Zeev or Andi will accept this patch ? Cristiano....
    2. [PHP-DEV] hook cast_object handler in userspace
      Simeon Koptelov wrote: Maybe you're right. I can move the code away from the "cast" function and create a toString method on the "Object" class...
    3. Re[2]: [PHP-DEV] hook cast_object handler in userspace
      Hello Cristiano, Here's why i think that interface is not good solution. We need the toString method like java's one to safely assume that...
    4. [PHP-DEV] hook cast_object handler in userspace
      these are built in. - and done to avoid conflicts. since you implicitly make this available by adding an interface Morphable?? or soemthing, -...
    5. [PHP-DEV] hook cast_object handler in userspace
      According to the current Coding Standard document.. it should be toString() : even though php is not Case-sensitive:).. Would be nice to see this...
  3. #2

    Default Re: I am looking for a DW API hook

    Hey Michael ..

    did you look here?

    [url]http://livedocs.adobe.com/en_US/Dreamweaver/9.0_API/help.html?content=dwr_intro_api_in_05.html[/url]

    There was a humungo book for DW8 by MM Press .. I have no idea if Adobe did
    similar for CS3. Sorry.


    --
    Nancy Gill
    Adobe Community Expert
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
    Technical Editor: Dreamweaver CS3: The Missing Manual,
    DMX 2004: The Complete Reference, DMX 2004: A Beginner's Guide
    Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web Development

    "E Michael Brandt" <michael@valleywebdesigns.com> wrote in message
    news:f7is6p$77a$1@forums.macromedia.com...
    > Like _beforeSave, is there a DW API hook akin to _beforePreview (before
    > previewing in a browser the page currently open in the Design Window)?
    >
    > btw, "_beforePreview" does not seem to work, but I am hoping there is some
    > other term they chose for this.
    >
    > Anyone know?
    >
    > --
    >
    > E. Michael Brandt
    >
    > [url]www.divaHTML.com[/url]
    > divaGPS | divaFAQ
    >
    > [url]www.valleywebdesigns.com[/url]
    > JustSo PictureWindow
    >
    > --

    Nancy - Adobe Comm. Expert Guest

  4. #3

    Default Re: I am looking for a DW API hook

    Thanks. I've looked everywhere. There used to be a great online
    article on "undocumented DW api" calls, by paul boon? but I can no
    longer find anything like it by googling. It described _beforeSave etc
    and might have revealed something like _beforePreview.

    emichael



    Nancy - Adobe Comm. Expert wrote:
    > Hey Michael ..
    >
    > did you look here?
    >
    > [url]http://livedocs.adobe.com/en_US/Dreamweaver/9.0_API/help.html?content=dwr_intro_api_in_05.html[/url]
    >
    > There was a humungo book for DW8 by MM Press .. I have no idea if Adobe did
    > similar for CS3. Sorry.
    >
    >

    --

    E. Michael Brandt

    [url]www.divaHTML.com[/url]
    divaGPS | divaFAQ

    [url]www.valleywebdesigns.com[/url]
    JustSo PictureWindow

    --
    E Michael Brandt Guest

  5. #4

    Default Re: I am looking for a DW API hook

    hmm .. I found something that may help and wrote you offlist. :)

    Nancy

    "E Michael Brandt" <michael@valleywebdesigns.com> wrote in message
    news:f7jnoi$gb1$3@forums.macromedia.com...
    > Thanks. I've looked everywhere. There used to be a great online article
    > on "undocumented DW api" calls, by paul boon? but I can no longer find
    > anything like it by googling. It described _beforeSave etc and might
    > have revealed something like _beforePreview.
    >
    > emichael
    >
    >
    >
    > Nancy - Adobe Comm. Expert wrote:
    >> Hey Michael ..
    >>
    >> did you look here?
    >>
    >> [url]http://livedocs.adobe.com/en_US/Dreamweaver/9.0_API/help.html?content=dwr_intro_api_in_05.html[/url]
    >>
    >> There was a humungo book for DW8 by MM Press .. I have no idea if Adobe
    >> did similar for CS3. Sorry.
    >>
    >>
    >
    >
    > --
    >
    > E. Michael Brandt
    >
    > [url]www.divaHTML.com[/url]
    > divaGPS | divaFAQ
    >
    > [url]www.valleywebdesigns.com[/url]
    > JustSo PictureWindow
    >
    > --

    Nancy - Adobe Comm. Expert Guest

  6. #5

    Default Re: I am looking for a DW API hook

    Just for all to know, Nancy has been really helpful, and I'd like to
    thank her publicly here. Hoorah Nancy Gill.

    Just fyi, we found no reference anywhere to the API hook I am looking
    for. So if anyone else has a source for this info?

    --

    E. Michael Brandt

    [url]www.divaHTML.com[/url]
    divaGPS | divaFAQ

    [url]www.valleywebdesigns.com[/url]
    JustSo PictureWindow

    --


    Nancy - Adobe Comm. Expert wrote:
    > hmm .. I found something that may help and wrote you offlist. :)
    >
    > Nancy
    >
    > "E Michael Brandt" <michael@valleywebdesigns.com> wrote in message
    > news:f7jnoi$gb1$3@forums.macromedia.com...
    >> Thanks. I've looked everywhere. There used to be a great online article
    >> on "undocumented DW api" calls, by paul boon? but I can no longer find
    >> anything like it by googling. It described _beforeSave etc and might
    >> have revealed something like _beforePreview.
    >>
    >> emichael
    >>
    >>
    >>
    >> Nancy - Adobe Comm. Expert wrote:
    >>> Hey Michael ..
    >>>
    >>> did you look here?
    >>>
    >>> [url]http://livedocs.adobe.com/en_US/Dreamweaver/9.0_API/help.html?content=dwr_intro_api_in_05.html[/url]
    >>>
    >>> There was a humungo book for DW8 by MM Press .. I have no idea if Adobe
    >>> did similar for CS3. Sorry.
    >>>
    >>>
    >>
    >> --
    >>
    >> E. Michael Brandt
    >>
    >> [url]www.divaHTML.com[/url]
    >> divaGPS | divaFAQ
    >>
    >> [url]www.valleywebdesigns.com[/url]
    >> JustSo PictureWindow
    >>
    >> --
    >
    >
    E Michael Brandt Guest

  7. #6

    Default Re: I am looking for a DW API hook

    E Michael Brandt wrote:
    > Just for all to know, Nancy has been really helpful, and I'd like to
    > thank her publicly here. Hoorah Nancy Gill.
    >
    > Just fyi, we found no reference anywhere to the API hook I am looking
    > for. So if anyone else has a source for this info?
    I'm not aware of any specific hooks for what you're asking for (_beforePreview). Can you say what you're trying to accomplish so that others may understand what you're tying to do and perhaps offer alternative options?

    Can I ask what Nancy suggested you try?

    FYI: the Paul Boon extension related info you're looking for should be here:
    [url]http://www.communitymx.com/blog/index.cfm?blogger=35[/url]

    --
    Danilo Celic
    | Extending Knowledge Daily : [url]http://CommunityMX.com/[/url]
    | Adobe Community Expert
    danilocelic AdobeCommunityExpert Guest

  8. #7

    Default Re: I am looking for a DW API hook

    E Michael Brandt wrote:
    > Just for all to know, Nancy has been really helpful, and I'd like to
    > thank her publicly here. Hoorah Nancy Gill.
    And yes, Nancy is exceedingly helpful to many folks on a variety of forums and should be congratulated on her efforts.

    --
    Danilo Celic
    | Extending Knowledge Daily : [url]http://CommunityMX.com/[/url]
    | Adobe Community Expert
    danilocelic AdobeCommunityExpert Guest

  9. #8

    Default Re: I am looking for a DW API hook

    > And yes, Nancy is exceedingly helpful to many folks on a variety of forums
    > and should be congratulated on her efforts.

    What a nice thing to say .. thanks, Danilo! My next suggestion was actually
    that he try to talk to you. :)

    Yes .. the Paul Boon stuff is what I pointed him to .. unfortunately it
    didn't go far enough. Also .. you wrote a series of articles on the same
    subject .. but I never found Part 3 on Menu and Function call triggered
    events. Did I miss it?

    Thanks .. and cheers!

    Nancy


    Nancy - Adobe Comm. Expert Guest

  10. #9

    Default Re: I am looking for a DW API hook

    Awe, Michael .. now I'm blushing .. you're soo sweet! :)

    Nancy

    "E Michael Brandt" <michael@valleywebdesigns.com> wrote in message
    news:f7lj4p$fpl$2@forums.macromedia.com...
    > Just for all to know, Nancy has been really helpful, and I'd like to thank
    > her publicly here. Hoorah Nancy Gill.
    >
    > Just fyi, we found no reference anywhere to the API hook I am looking for.
    > So if anyone else has a source for this info?
    >
    > --
    >
    > E. Michael Brandt
    >
    > [url]www.divaHTML.com[/url]
    > divaGPS | divaFAQ
    >
    > [url]www.valleywebdesigns.com[/url]
    > JustSo PictureWindow
    >
    > --
    >
    >
    > Nancy - Adobe Comm. Expert wrote:
    >> hmm .. I found something that may help and wrote you offlist. :)
    >>
    >> Nancy
    >>
    >> "E Michael Brandt" <michael@valleywebdesigns.com> wrote in message
    >> news:f7jnoi$gb1$3@forums.macromedia.com...
    >>> Thanks. I've looked everywhere. There used to be a great online
    >>> article on "undocumented DW api" calls, by paul boon? but I can no
    >>> longer find anything like it by googling. It described _beforeSave etc
    >>> and might have revealed something like _beforePreview.
    >>>
    >>> emichael
    >>>
    >>>
    >>>
    >>> Nancy - Adobe Comm. Expert wrote:
    >>>> Hey Michael ..
    >>>>
    >>>> did you look here?
    >>>>
    >>>> [url]http://livedocs.adobe.com/en_US/Dreamweaver/9.0_API/help.html?content=dwr_intro_api_in_05.html[/url]
    >>>>
    >>>> There was a humungo book for DW8 by MM Press .. I have no idea if Adobe
    >>>> did similar for CS3. Sorry.
    >>>>
    >>>>
    >>>
    >>> --
    >>>
    >>> E. Michael Brandt
    >>>
    >>> [url]www.divaHTML.com[/url]
    >>> divaGPS | divaFAQ
    >>>
    >>> [url]www.valleywebdesigns.com[/url]
    >>> JustSo PictureWindow
    >>>
    >>> --
    >>
    Nancy - Adobe Comm. Expert Guest

  11. #10

    Default Re: I am looking for a DW API hook

    Danilo- thanks for jumping in here.

    Nancy had pointed me to the cmx links, thanks. Unfortunately they did
    not have anything on this, nor did your posts, as you know.

    But you did write this tantalizing bit:

    "There are three general categories of event-driven Commands that
    Dreamweaver allows an Extensioneer to tap into:

    1. Application session Commands: Startup and Shutdown Commands
    2. Document related events: Opening a document, before saving a
    document, and after saving a document.
    3. Menu and Function call triggered events.
    "

    and then you wrote articles on 1. and 2.

    Would 3., were it written, not have covered allowed intervening after a
    click on the Preview button?

    What I am trying to do is edit the document a bit for Previewing, or
    better yet edit just the TMP file just before it is Previewed. Do you
    think that is possible?

    --

    E. Michael Brandt

    [url]www.divaHTML.com[/url]
    divaGPS | divaFAQ

    [url]www.valleywebdesigns.com[/url]
    JustSo PictureWindow

    --



    danilocelic AdobeCommunityExpert wrote:
    > E Michael Brandt wrote:
    >> Just for all to know, Nancy has been really helpful, and I'd like to
    >> thank her publicly here. Hoorah Nancy Gill.
    >>
    >> Just fyi, we found no reference anywhere to the API hook I am looking
    >> for. So if anyone else has a source for this info?
    >
    > I'm not aware of any specific hooks for what you're asking for
    > (_beforePreview). Can you say what you're trying to accomplish so that
    > others may understand what you're tying to do and perhaps offer
    > alternative options?
    >
    > Can I ask what Nancy suggested you try?
    >
    > FYI: the Paul Boon extension related info you're looking for should be
    > here:
    > [url]http://www.communitymx.com/blog/index.cfm?blogger=35[/url]
    >
    E Michael Brandt Guest

  12. #11

    Default Re: I am looking for a DW API hook

    E Michael Brandt wrote:
    > Would 3., were it written, not have covered allowed intervening after a
    > click on the Preview button?
    The final article was suppose to cover the event object found in
    {install folder}/Dreamweaver XXX/Configuration/Shared/MM/Scripts/event.js

    It's supposed to allow for assigning commands to be called prior to or after certain registered "events". You'd have to invoke the event by using the event object's notify method from within your code (or menu items).
    > What I am trying to do is edit the document a bit for Previewing, or
    > better yet edit just the TMP file just before it is Previewed. Do you
    > think that is possible?
    As it looks like the TMP file is created within a block of code that you can't intercept this to know what the file will be to be able to make changes to it, so I don't see how it is possible to intercept this functionality.

    Unless I'm not aware of something (likely) seems to me that if you need to add code for previewing, you'd need to add it to the document prior to it being viewed in a browser regardless of whether or not it is invoked via the preview in browser functionality or from a web server, so why are you not adding it to the document as part of your processing?


    --
    Danilo Celic
    | Extending Knowledge Daily : [url]http://CommunityMX.com/[/url]
    | Adobe Community Expert
    danilocelic AdobeCommunityExpert Guest

  13. #12

    Default Re: I am looking for a DW API hook

    Danilo -

    Thanks for this information. Too bad it is not possible to intercept
    the process where I need to.

    Now, as for what this is all about, hmmm, well it's a duhh idea that,
    trust me, wants to go only into a Previewed document. I could tell you
    more, but then I'd have to disable you(r mouse) :?) Seriously, write me
    off group and I'll fill you in: michael divaHTML.com

    --

    E. Michael Brandt

    [url]www.divaHTML.com[/url]
    divaGPS | divaFAQ

    [url]www.valleywebdesigns.com[/url]
    JustSo PictureWindow

    --


    danilocelic AdobeCommunityExpert wrote:
    > E Michael Brandt wrote:
    >> Would 3., were it written, not have covered allowed intervening after
    >> a click on the Preview button?
    >
    > The final article was suppose to cover the event object found in
    > {install folder}/Dreamweaver XXX/Configuration/Shared/MM/Scripts/event.js
    >
    > It's supposed to allow for assigning commands to be called prior to or
    > after certain registered "events". You'd have to invoke the event by
    > using the event object's notify method from within your code (or menu
    > items).
    >
    >> What I am trying to do is edit the document a bit for Previewing, or
    >> better yet edit just the TMP file just before it is Previewed. Do you
    >> think that is possible?
    >
    > As it looks like the TMP file is created within a block of code that you
    > can't intercept this to know what the file will be to be able to make
    > changes to it, so I don't see how it is possible to intercept this
    > functionality.
    >
    > Unless I'm not aware of something (likely) seems to me that if you need
    > to add code for previewing, you'd need to add it to the document prior
    > to it being viewed in a browser regardless of whether or not it is
    > invoked via the preview in browser functionality or from a web server,
    > so why are you not adding it to the document as part of your processing?
    >
    >
    E Michael Brandt 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