Site.setconnectionstate(), Site.setcurrentsite(), Site.setfocus() – Adobe Dreamweaver API Reference CS5 User Manual
Page 248

243
DREAMWEAVER API REFERENCE
Site
Last updated 8/27/2013
Returns
None.
site.setConnectionState()
Availability
Dreamweaver 3.
Description
Sets the connection state of the current site.
Arguments
bConnected
•
The bConnected argument is a Boolean value that indicates if there is a connection (
true
) or not (
false
) to the
current site.
Returns
Nothing.
site.setCurrentSite()
Availability
Dreamweaver 3.
Description
Opens the specified site in the local pane of the Files panel.
Arguments
whichSite
•
The whichSite argument is the name of a defined site (as it appears in the Current Sites list in the Files panel or the
Site Definition dialog box).
Returns
Nothing.
Example
If three sites are defined (for example, avocado8, dreamcentral, and testsite), a call to
site.setCurrentSite("dreamcentral");
makes dreamcentral the current site.
site.setFocus()
Availability
Dreamweaver 3, and updated in CS4.