Adobe 38040334 API Reference - Page 244
dreamweaver.newFromTemplate, dreamweaver.openDocument, dreamweaver.openDocumentFromSite
UPC - 883919090467
View all Adobe 38040334 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 244 highlights
DREAMWEAVER CS3 239 API Reference • The bopenWithCurSiteAndShowDialog argument, which is optional, has a value of true or false. Specify true to open a document with the current site and to cause the New Document dialog box to appear; false otherwise. Returns Nothing. dreamweaver.newFromTemplate() Availability Dreamweaver 3. Description Creates a new document from the specified template. If no argument is supplied, the Select Template dialog box appears. Arguments {templateURL}, bMaintain • The templateURL argument is the path to a template in the current site, which is expressed as a file:// URL. • The bMaintain argument is a Boolean value, true or false, that indicates whether to maintain the link to the original template. Returns Nothing. dreamweaver.openDocument() Availability Dreamweaver 2. Description Opens a document for editing in a new Dreamweaver window and gives it the focus. For a user, the effect is the same as selecting File > Open and selecting a file. If the specified file is already open, the window that contains the document comes to the front. The window that contains the specified file becomes the currently selected document. In Dreamweaver 2, if Check In/Check Out is enabled, the file is checked out before it opens. In Dreamweaver 3 and later, you must use "dreamweaver.openDocumentFromSite()" on page 240 to get this behavior. Note: This function will cause an error if called from Behavior action or object files. Arguments fileName • The fileName argument is the name of the file to open, which is expressed as a URL. If the URL is relative, it is relative to the file that contains the script that called this function. Returns The document object for the specified file, which is the same value that the dreamweaver.getDocumentDOM() function returns.