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

Problem opening the current selection

New Here ,
Jun 12, 2009 Jun 12, 2009

Copy link to clipboard

Copied

Hey guys,

This one has really got me stuck. I'm writing a Dreamweaver Extension and I need to programmatically select a page in the current site and then open it. Simple right? Well the opening step only seems to work when I already have 2 pages open.. Does the editor need to be in some special mode to make this happen? Here is my code:

    site.locateInSite("local","somepage.html"); // THIS WORKS
    site.open(); // THIS ONLY WORKS WHEN 2 pages ARE ALREADY OPEN ON THE WORKSPACE

Thanks!

TOPICS
Extensions

Views

842

Translate

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 ,
Jun 12, 2009 Jun 12, 2009

Copy link to clipboard

Copied

LATEST

The underlying code for this function is available anytime in dreamweaver.

Have you checked with the DW API documentation that you are using and referencing it correctly (I have found that DW has these functions in some strange places, so if you have not included the js file it will not work correctly).

The DW API docs are here (including links to download in pdf format) :

http://help.adobe.com/en_US/Dreamweaver/10.0_API_Ref/index.html

PZ

Votes

Translate

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