MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Spezifikationen Seite 389

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 504
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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:
Seitenansicht 388
1 2 ... 384 385 386 387 388 389 390 391 392 393 394 ... 503 504

Kommentare zu diesen Handbüchern

Keine Kommentare