ActiveScripting Examples
277
//Is this document Modified?
if (DocumentCache (count).Modified)
sTable = ’<center> Yes’+’</td><td></center>’;
else
sTable = ’<center> No’ + ’</td><td></center>’;
//Is this document Read-Only?
if (DocumentCache (count).ReadOnly)
sTable = ’<center>Yes’+ ’</td><td></center> ’;
else
sTable = ’<center>No’ + ’</td><td></center> ’;
// close row.
sTable = ’</td></tr>’ + newline;
count ++; // increment count by 1.
}
sTable = n ’</table><br><br>’;
sTable = ’<b><i><font color="#0000ff"> You ran this script
inside </font></i></b>’;
sTable = ’<b><font color="#ff0000">’+ Versi ’.</
font></b>’;
NewDocument (false);
ActiveDocument.InsertText (sTable, false);
CurrentView = 2;
}
}
//*****************************************************//
// If the filename is an empty string, either set it
// to untitled or don’t change it.
//*****************************************************//
function GetDisplayName (fname){
if (fname == ’’)
return ’(untitled)’;
else
return fname;
}
</pre>
</body>
</html>
Summary of Contents for ColdFusion Server 5
Page 18: ...xviii About This Book...
Page 26: ...8 Chapter 1 Setting Up the Product...
Page 42: ...24 Chapter 2 Configuring Browsers and Servers...
Page 60: ...42 Chapter 3 Exploring the Workspace...
Page 100: ...82 Chapter 6 Editing Pages...
Page 126: ...108 Chapter 7 Using Web Development Languages...
Page 212: ...194 Chapter 13 Customizing the Development Environment...
Page 320: ...302 Glossary...