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

I am looking for a DW API hook

LEGEND ,
Jul 17, 2007 Jul 17, 2007

Copy link to clipboard

Copied

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

www.divaHTML.com
divaGPS | divaFAQ

www.valleywebdesigns.com
JustSo PictureWindow

--
TOPICS
Extensions

Views

794
Translate

Report

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 ,
Jul 17, 2007 Jul 17, 2007

Copy link to clipboard

Copied

Hey Michael ..

did you look here?

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

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
>
> www.divaHTML.com
> divaGPS | divaFAQ
>
> www.valleywebdesigns.com
> JustSo PictureWindow
>
> --


Votes

Translate

Report

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 ,
Jul 17, 2007 Jul 17, 2007

Copy link to clipboard

Copied

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?
>
> http://livedocs.adobe.com/en_US/Dreamweaver/9.0_API/help.html?content=dwr_intro_api_in_05.html
>
> There was a humungo book for DW8 by MM Press .. I have no idea if Adobe did
> similar for CS3. Sorry.
>
>


--

E. Michael Brandt

www.divaHTML.com
divaGPS | divaFAQ

www.valleywebdesigns.com
JustSo PictureWindow

--

Votes

Translate

Report

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 ,
Jul 17, 2007 Jul 17, 2007

Copy link to clipboard

Copied

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?
>>
>> http://livedocs.adobe.com/en_US/Dreamweaver/9.0_API/help.html?content=dwr_intro_api_in_05.html
>>
>> There was a humungo book for DW8 by MM Press .. I have no idea if Adobe
>> did similar for CS3. Sorry.
>>
>>
>
>
> --
>
> E. Michael Brandt
>
> www.divaHTML.com
> divaGPS | divaFAQ
>
> www.valleywebdesigns.com
> JustSo PictureWindow
>
> --


Votes

Translate

Report

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 ,
Jul 18, 2007 Jul 18, 2007

Copy link to clipboard

Copied

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

www.divaHTML.com
divaGPS | divaFAQ

www.valleywebdesigns.com
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?
>>>
>>> http://livedocs.adobe.com/en_US/Dreamweaver/9.0_API/help.html?content=dwr_intro_api_in_05.html
>>>
>>> There was a humungo book for DW8 by MM Press .. I have no idea if Adobe
>>> did similar for CS3. Sorry.
>>>
>>>
>>
>> --
>>
>> E. Michael Brandt
>>
>> www.divaHTML.com
>> divaGPS | divaFAQ
>>
>> www.valleywebdesigns.com
>> JustSo PictureWindow
>>
>> --
>
>

Votes

Translate

Report

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 ,
Jul 18, 2007 Jul 18, 2007

Copy link to clipboard

Copied

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:
http://www.communitymx.com/blog/index.cfm?blogger=35

--
Danilo Celic
| Extending Knowledge Daily : http://CommunityMX.com/
| Adobe Community Expert

Votes

Translate

Report

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 ,
Jul 18, 2007 Jul 18, 2007

Copy link to clipboard

Copied

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 : http://CommunityMX.com/
| Adobe Community Expert

Votes

Translate

Report

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 ,
Jul 18, 2007 Jul 18, 2007

Copy link to clipboard

Copied

> 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


Votes

Translate

Report

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 ,
Jul 18, 2007 Jul 18, 2007

Copy link to clipboard

Copied

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
>
> www.divaHTML.com
> divaGPS | divaFAQ
>
> www.valleywebdesigns.com
> 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?
>>>>
>>>> http://livedocs.adobe.com/en_US/Dreamweaver/9.0_API/help.html?content=dwr_intro_api_in_05.html
>>>>
>>>> There was a humungo book for DW8 by MM Press .. I have no idea if Adobe
>>>> did similar for CS3. Sorry.
>>>>
>>>>
>>>
>>> --
>>>
>>> E. Michael Brandt
>>>
>>> www.divaHTML.com
>>> divaGPS | divaFAQ
>>>
>>> www.valleywebdesigns.com
>>> JustSo PictureWindow
>>>
>>> --
>>

Votes

Translate

Report

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 ,
Jul 18, 2007 Jul 18, 2007

Copy link to clipboard

Copied

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

www.divaHTML.com
divaGPS | divaFAQ

www.valleywebdesigns.com
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:
> http://www.communitymx.com/blog/index.cfm?blogger=35
>

Votes

Translate

Report

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 ,
Jul 18, 2007 Jul 18, 2007

Copy link to clipboard

Copied

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 : http://CommunityMX.com/
| Adobe Community Expert

Votes

Translate

Report

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 ,
Jul 18, 2007 Jul 18, 2007

Copy link to clipboard

Copied

LATEST
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

www.divaHTML.com
divaGPS | divaFAQ

www.valleywebdesigns.com
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?
>
>

Votes

Translate

Report

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