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!
Copy link to clipboard
Copied
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