MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Especificaciones Pagina 389

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 504
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 388
A simple data source example 389
function okClicked(){
var nameObj = document.forms[0].theName;
if (nameObj.value) {
if (IsValidVarName(nameObj.value)) {
MM.MyDatasourceContents = nameObj.value;
MM.retVal = "OK";
window.close();
} else {
alert(nameObj.value + " " + MM.MSG_InvalidParamName);
}
} else {
alert(MM.MSG_NoName);
}
}
3.
Save the file as MyDatasource_Variable.js in the Configuration/Commands folder.
Testing the new data source
You can now open Dreamweaver (or restart it if you already have it open), and open a
ColdFusion file or create a new one.
To test your new data source:
1. With the pointer in the document, click on the Bindings Plus (+) menu to see all the
available data sources. MyDatasource should appear at the bottom of the list:
Vista de pagina 388
1 2 ... 384 385 386 387 388 389 390 391 392 393 394 ... 503 504

Comentarios a estos manuales

Sin comentarios