Adobe Dreamweaver API Reference CS5 Manual do Utilizador Página 264

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 533
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 263
259
DREAMWEAVER API REFERENCE
Document
Last updated 8/27/2013
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 259 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.
dreamweaver.openDocumentFromSite()
Availability
Dreamweaver 3.
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 double-clicking a file in the Site panel. 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.
Note: This function cannot be called from Behavior action or object files because it causes an error.
Arguments
fileName
The fileName argument is 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.
Vista de página 263
1 2 ... 259 260 261 262 263 264 265 266 267 268 269 ... 532 533

Comentários a estes Manuais

Sem comentários