Contents ● Configuring the Internal Browser ● Configuring External Browsers ● Working with Files on Remote Servers Copyright © 2001, Macromedia Inc.. Configuring External Browsers Using
Trang 1Using HomeSite: Contents
Using HomeSite
Contents
About This Book Setting Up the Product Configuring Browsers and Servers Exploring the Workspace
Managing Files Learning HTML and CSS Writing Code and Web Content Editing Pages
Using Web Development Languages Managing a Web Site with Projects Deploying Files
Testing and Maintaining Web Pages Customizing the Development Environment Scripting the Visual Tools Object Model Index
Trang 2About This Book
Using HomeSite
About This Book
Using HomeSite is designed to familiarize you with the product's user interface and
productivity tools that you can use to quickly develop high-quality Web content
Trang 3Copyright © 2001, Macromedia Inc All rights reserved.
Comments
View comments on LiveDocs
Trang 4This section also describes other resources available for HomeSite developers
Macromedia Web site
The Macromedia Web site is designed to give you quick access to the entire range of online resources, as the following table describes
Macromedia
Web site
General information about Macromedia products and services
www.macromedia.com
Product
Information
Detailed product information on Macromedia products and related topics
http://www.macromedia.com/software/
Technical
Support
Professional support programs offered by Macromedia
http://www.macromedia.com/support/
Knowledge
Base
Repository of articles for improving the performance
of Macromedia products and extending their functionality
http://www.macromedia.com/go/allaire_kb
Trang 5Developer Resources
Installation
Support
Support for installation- related issues for all
Macromedia products
Macromedia support staff, where you can post
messages and read replies
on subjects relating to Visual Tools features
http://www.macromedia.com/go/fp_cfstudio_hsforum
Developer
Center
All the resources that you need to stay current in your skills, including online discussion groups, Knowledge Base, technical papers and more
http://www.macromedia.com/go/fp_cfstudio_hsdevcenter
Developer
Center
All the resources that you need to stay current in your skills, including online discussion groups, Knowledge Base, technical papers and more
http://www.macromedia.com/go/fp_cfstudio_jrundevcenter
Trang 6Developer Resources
Developer
Exchange
Open repository where you can view,
contribute, and download multiple types
of content that benefit
software developers, for example custom tags, scripts, Web content, visual tools, and third- party
maintained within the HomeSite developer community
to develop dynamic, data- driven Web sites, and a
link to download a free evaluation copy of
ColdFusion that you can use with HomeSite
http://www.macromedia.com/software/coldfusion/resources/
Browser
testing sites
Browser compatibility is still an
important issue for Web site
developers and these sites provide online testing services.
1.html
Trang 7http://builder.cnet.com/webbuilding/0-7255-8-5801921-Developer Resources
Professional
Education
Information about developer certification and the classes, on- site training, and online courses offered by Macromedia
http://www.macromedia.com/support/training/
Documentation Links to
download the latest
documentation and
documentation updates.
http://www.macromedia.com/go/allaire_docs
Macromedia
Alliances
Connection with the growing network of solution providers, application developers, resellers, and hosting services which create
solutions with Macromedia products
Another good Web source for tutorials is http://www.tutorialfind.com/tutorials/
Copyright © 2001, Macromedia Inc All rights reserved.
Comments
View comments on LiveDocs
Trang 8About the Documentation
Using HomeSite
About This Book
About the Documentation
The documentation is designed to provide support for the complete spectrum of participants The print and online versions are organized to allow you to quickly locate the information that you need The online documentation is provided in HTML and Adobe Acrobat formats
You can also access release notes, product support information, and several
developer resources from the Help menu
The rest of this section describes the conventions used in the documentation and the contents of the HomeSite documentation set
Documentation conventions
When reading the documentation, note the following formatting cues:
● Code samples are set in a monospaced font
● Levels to access a dialog box or pane are separated by the greater than (>) sign, and the path to access the item is set in bold Following are two
examples:
❍ "Select File > New" means "Select New from the File menu."
❍ "Select Options > Settings > Editor > Auto Completion" means
"Select Settings from the Options menu and then, in the Settings dialog box, expand the Editor node and select Auto Completion."
● Book titles and emphasized text are set in italics.
● New terms are set in boldface.
Printed and online documentation set
The HomeSite documentation consists of the online and print versions of Using HomeSite, context-sensitive F1 Help, tag definitions for HTML and VTML, and
several online language references in the Help Resources tab
The following table provides examples of what to check, depending on your needs
Trang 9About the Documentation
Learn the basics of Web development The chapter "Learning HTML and CSS",
which contains two tutorials: one for coding in HTML to create a Web page, and one for applying style sheet rules to that Web page
Check syntax or usage information as
you code
The W3C HTML 4.01 Specification To open it, position the cursor in a tag and press F1 F1 help is available for all supported languages To view a list of supported languages, open the Tag Chooser (Ctrl+E)
Create or modify Tag Editor dialog
boxes
The chapter "Customizing the Development Environment", which points
to a detailed VTML language reference
Automate tasks or call HomeSite
functionality from other programs
The chapter "Scripting the Visual Tools Object Model", written for power users and application developers
Viewing online documentation
You can view Help for a specific tag, Help topics in HTML format, or online
documentation in Adobe Acrobat (PDF) format
To view Help for a tag:
● Position the cursor in a tag and press F1 Help for the selected tag appears, including syntax and usage information
F1 Help is available for all supported languages To view a list of the supported languages, open the Tag Chooser (Ctrl+E)
To view the online HTML help:
1 Select Help > Open Help References Window
The Help tab of the Resources window appears, displaying a tree of online books that include several language references as well as the
documentation
2 Find the Help topic you need, using the tree, search engine, index, or bookmarks
For details, see "Getting the Most from the Help System"
3 Double-click the topic you need to display it in the Document window
To view the PDF documentation:
Trang 10About the Documentation
● Open the PDF documentation from the product CD-ROM or download it from the Macromedia Web site, from
www.allaire.com/developer/documentation/HomeSite.cfm
Printing online documentation
You can print one Help topic at a time in the HTML Help, or print as many pages of the Help as you need from the Adobe Acrobat (PDF) format of the Help
To print a single Help topic in the HTML Help:
1 Display the Help topic you need to print
For instructions, see "Viewing online documentation"
2 Right-click the topic in the Document window and select your browser's command to print
To print several pages from the PDF documentation:
1 Open the PDF documentation from the product CD-ROM or download it from the Macromedia Web site, from
www.allaire.com/developer/documentation/HomeSite.cfm
2 Print as many pages of the documentation as you need
Copyright © 2001, Macromedia Inc All rights reserved.
Comments
View comments on LiveDocs
Trang 11Copyright © 2001, Macromedia Inc All rights reserved.
Comments
View comments on LiveDocs
Trang 12Fax: 415.626.0554Web:macromedia.com
Technical
support
Macromedia offers a range of telephone and Web-based support options Go to www.macromedia.com/support/ for a complete description of technical support services
All User Forums are listed on the Macromedia Forums home page at http://www.macromedia.com/support/forums/ You can post an entry anytime
Tel: 617.219.2100Fax: 617.219.2101E-mail: sales@macromedia.com
Trang 13Copyright Information
Using HomeSite
About This Book
Copyright Information
Portions of the software are copyrighted as follows:
Copyright © 2001, Macromedia Inc All rights reserved
Copyright © 1987-2000 by Francois Piette, Rue de Grady 24, 4053 Embourg,
Belgium
Copyright © 1998-2000 World Wide Web Consortium (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University ) ARR
Quality freeware from Sight&Sound, Slovenia : http://www.sight-sound.si Version 1.0: release date 15.11.1996
The Drag & Drop Component Suite Copyright © 1997-1999 (Version 3.7) by Angus Johnson & Anders Melander All Rights Reserved
Copyright © Bradley D Stowers
Copyright © 1996-2000 Plasmatech Software Design, All Rights Reserved
Copyright © 1995-2000 by L David Baldwin, All Rights Reserved
Copyright © 1995-1998 Xceed Software Inc., All Rights Reserved
Copyright © 1996-1999, EFD Systems, All Rights Reserved
Copyright © 1998 by REDSystems
Copyright © 1999-2001 by Hydrix Technologies
Copyright © 2001 Ipswitch Inc
The Sentry Spelling Checker Engine Copyright © 2000 Wintertree Software Inc
Ttree Component Library Copyright © 1998-2000 by David Berneda
Trang 14Copyright Information
Copyright © 1997 by Jordan Russell
Copyright © 2001, Macromedia Inc All rights reserved.
Comments
View comments on LiveDocs
Trang 15Setting Up the Product
Using HomeSite
Chapter 1
Setting Up the Product
This chapter contains instructions for installing or upgrading HomeSite and
● Monitoring System Resources
Copyright © 2001, Macromedia Inc All rights reserved.
Comments
View comments on LiveDocs
Trang 16System Requirements
Using HomeSite
Setting Up the Product
System Requirements
Following are the minimum installation requirements:
● Pentium-compatible processor (Pentium II or higher recommended)
● Windows® 98, ME, NT 4, 2000, XP
● Internet Explorer 4.5 or higher
● 64 MB available RAM (128 MB recommended)
● 256-color monitor capable of 800 x 600 screen resolution
● 35 MB of free hard disk space
● ®CD-ROM drive (for installing CD version)
Copyright © 2001, Macromedia Inc All rights reserved.
Comments
View comments on LiveDocs
Trang 17Installing or Upgrading
Using HomeSite
Setting Up the Product
Installing or Upgrading
This section contains instructions for installing HomeSite
Do not install an earlier version of HomeSite over a later version; however, later versions are backward-compatible with earlier versions If both this version and a previous version are installed on your machine, you can run either version, but the earlier version will reflect changes made in the current version to searching, source control and projects, debugging, FTP, and validation
HomeSite records any errors that are encountered during installation to a log file in the root directory Please be ready to send this file to Technical Support if you need help with installation
To install:
1 Close all open applications and insert the HomeSite CD-ROM
2 When the opening screen displays, click Install
3 The Installation Wizard starts and you see a Welcome window Click Next
4 Click Yes to accept the Software License Agreement
5 In the User Information window, type your name, company, and HomeSite serial number Then click Next
6 In the Choose Destination Location window, see if you are satisfied with the default file location for the program If so, click Next If not, click the file folder button and choose a different file location, and then click Next
7 In the Select Components window, make selections as necessary and click Next
8 In the Select Program folder window, change the name of the program folder
in the Start menu if desired and then click Next
9 In the Start Copying Files window, click Next to copy the files to your system Once the program is copied to your system, the Setup Complete window appears
10 Select the option to restart your machine and click Finish
The installation is completed
To upgrade:
1 Do not uninstall the previous version before installing the current version
2 Do not delete the UserData and AutoBackup folder This allows you to import
your customizations into the current version and to files created by the
Trang 18Installing or Upgrading
3 Close all open applications and insert the HomeSite CD-ROM
4 When the opening screen displays, click Install
5 Follow the instructions in the Installation Wizard
6 Once the program files are copied to your system, select the option to restart your machine and click Finish to complete the installation
The upgrade is completed
Copyright © 2001, Macromedia Inc All rights reserved.
Comments
View comments on LiveDocs
Trang 19The English language version of HomeSite is installed with support for Chinese
(traditional and simplified), Korean, and Japanese characters sets on localized Windows systems To enter characters from these sets, use the Microsoft input method This support depends on your system language, and does not work if the Western language option is set In Windows, you can reset your system language from the Control Panel, in Regional Settings or Regional Options
Note
If you need to run HomeSite, ColdFusion Studio, or JRun Studio
simultaneously, see Knowledge Base article 20923 for help
About the Initial Configuration Wizard
The Initial Configuration Wizard (ICW) lets you carry over options from a previous version and also set new options
The first time you run the current version of HomeSite, the ICW automatically starts, and it checks for a previous version
● If one is found, you can selectively import options from the previous version
● If one is not found, the wizard prompts you to set a few initial options.
When the wizard is finished, HomeSite starts
You can run the ICW again at any time by selecting File > New from the menu and
then selecting Initial Configuration Wizard from the Custom tab
Trang 20Completing Setup
Note
You can use the ICW when upgrading the same product, for example
HomeSite 4.5.2 to HomeSite 5, but you cannot import settings when
upgrading between products, for example from HomeSite 4.5.2 to
ColdFusion Studio 5
Setting up for the first time
This section explains how to complete the Initial Configuration Wizard (ICW) if you installed HomeSite for the first time, or if you uninstalled and installed it
To complete the ICW after a first-time installation:
1 The ICW automatically starts when you run HomeSite for the first time
2 In the initial welcome dialog box of the wizard, click Next
3 In the Development Style dialog box, select the language toolbars to include
in the QuickBar, and select or browse to the template that you want to use as your default for all HomeSite documents
4 In the Perform Upgrade dialog box, confirm your selections (you can click Back and make changes if necessary), and then click Finish
The initial configuration is complete and you can start using HomeSite
Setting up from a previous version
This section explains how to complete the Initial Configuration Wizard (ICW) if you
installed this version of HomeSite over a previous version (not uninstalling before
you installed)
To complete the ICW after an upgrade:
1 The ICW automatically starts after you run HomeSite fro the first time after upgrading
2 In the initial welcome dialog box of the wizard, click Next
3 In the Upgrade Product Settings dialog box, note the items that you can upgrade, based on the changes made in the previous version Click Next What appears next depends on the changes made in the previous version
❍ If remote servers were defined in the previous version, the Upgrade Remote Servers dialog box appears
Select every server that you need for the current version or any previous version (If you do not select a server in this list, it will no longer work in the previous version either.) Click Next
Trang 21Select every customization that you want to carry over to the current version and click Next.
4 In the Preserve Editor Settings dialog box, select the options to carry over to the current version Click Next
You can change these options later by selecting Options > Settings and
making changes in the Editor pane, Validation pane, and the panes underneath Editor
5 In the Preserve General Settings dialog box, select the customizations to carry over to the current version (Only non-default options appear.) Click Next
You can change these options later by selecting Options > Settings and
making changes in the following panes: General, Markup Languages, Startup, Locations, File Settings, Browse, Spelling, Dreamweaver/UltraDev, Projects, and Tag Definitions Library
6 In the Miscellaneous Settings dialog box, select the items whose options you want to carry over to the current version For example, to carry over color coding customizations, select Color Settings Or if Auto Completion was enabled in the previous version, and you want to keep it turned on in the current version, select Auto Completion Click Next
7 In the Development Style dialog box, select the language toolbars to include
in the QuickBar, and select or browse to the template that you want to use as your default for all HomeSite documents
8 In the Perform Upgrade dialog box, confirm your selections (you can click Back and make changes if necessary), and then click Finish
The initial configuration is complete and you can start using HomeSite
Copyright © 2001, Macromedia Inc All rights reserved.
Comments
View comments on LiveDocs
Trang 22Monitoring System Resources
Using HomeSite
Setting Up the Product
Monitoring System Resources
HomeSite's extensive use of GDI and User resources under Windows 98/ME has consistently caused problems for users on these platforms This section describes the problem and how to mitigate it
For more information, also see Knowledge Base article 21011 on the Macromedia Web site
Releasing system resources taken at start-up
One solution is to free up resources that Windows 98/ME takes at start-up for
unnecessary programs and processes
To release resources that Windows 98/ME takes at start-up:
1 On the Windows Start menu, click Run
2 Type msconfig in the Run dialog box and click OK
3 Carefully clear options that you are absolutely certain you do not need, use,
or have Record your changes as you proceed, in case you need to change back
4 Click Apply to save your changes
For a useful description of memory usage on Windows 98/ME systems, see the
Windows 9.x System Resources article on InfiniSource
After reclaiming these resources, if you still encounter difficulties with system
resources, you may benefit from configuring the Resource Level Monitor
About the Resource Level Monitor
Version 4.5.2 introduced the Resource Level Monitor to monitor system resources while the application is running The Resource Level Monitor warns users when resources reach a critical level, enabling them to save documents and close the application before a crash occurs However, the warning dialog box was not labeled with the application name, so the source of the warning was not clear, and users had
to edit the Windows registry to configure the monitor
As a result, the Resource Level Monitor has been enhanced for this release so that the warning dialog includes the application name in the window title and in the
Trang 23Monitoring System Resources
Also, users can now configure the monitor in a graphical user interface
Using the Resource Level Monitor
This section explains how to respond to warnings and how to configure the monitor
Responding to warnings
The following graphic is an example of the warning dialog box that appears if you have the default warning threshold for GDI resources set at 15% and your available GDI resources drop below this level
For best results, at least save your work, even if you choose to continue If you choose to continue, the warning dialog box closes and will not appear again unless your system resources drops another 5%, for example, when GDI resources drop to 9%
Configuring the monitor
Users should configure the Resource Level Monitor if their system crashes without having been warned, or if they are being warned too frequently or unnecessarily You can adjust monitor options until you find a stable level for your system
To configure the Resource Level Monitor:
1 Open the Options > Settings > Resource Monitoring pane
2 Specify the following options, as necessary:
❍ Enable/disable resource monitoring
❍ Specify separate warning level thresholds for GDI and User resources (the default for each type of resource is 15%)
❍ Set a time interval for monitoring
3 Click Apply to save your changes
Copyright © 2001, Macromedia Inc All rights reserved.
Comments
View comments on LiveDocs
Trang 24Configuring Browsers and Servers
Using HomeSite
Chapter 2
Configuring Browsers and Servers
This chapter contains instructions for setting up browsers and servers
Contents
● Configuring the Internal Browser
● Configuring External Browsers
● Working with Files on Remote Servers
Copyright © 2001, Macromedia Inc All rights reserved.
Comments
View comments on LiveDocs
Trang 25Configuring the Internal Browser
Using HomeSite
Configuring Browsers and Servers
Configuring the Internal Browser
The following sections describe the choices available for browsing documents and processing pages from within HomeSite
Setting the internal browser options
You can use the internal browser to view documents in a Web browser within the
program To set options, select Options > Settings and click Browse
You can select one of these browser options:
● If Microsoft Internet Explorer is installed on your system, you can use it as the internal browser
Go to http://www.microsoft.com/downloads/ to download the latest version
● If you have Netscape version 6 or later on your system and you correctly
install and configure the Mozilla browser NGLayout/Gecko control, you can use Netscape as the internal browser Please note the Mozilla control is under development and is limited in its functionality and stability
For setup instructions, see "To install and configure Mozilla:"
● A built-in browser is available if you want to use it, but please note that the built-in browser is limited in its support of HTML and browser extensions
You can only use one internal browser at a time, but you can change this setting as needed Restart the program for the change to take effect
Select the Use External Browser Configuration for Internal Browser option to apply consistent file save behavior when viewing documents in either the internal browser
or an external browser For details, see "Configuring External Browsers"
To install and configure Mozilla:
1 Download a Mozilla build from http://ftp.mozilla.org/pub/mozilla/releases/ For best results, download the Mozilla 0.8.1 build created on 8/28/2001, from
0.8.1.zip
http://ftp.mozilla.org/pub/mozilla/releases/mozilla0.8.1/mozilla-win32-2 Unzip the Mozilla binary files into a new directory on your system
3 Open a Command prompt and change to the Mozilla bin directory For
Trang 26Configuring the Internal Browser
example, if the bin directory is in D:\mozilla, enter d: and then enter cd mozilla\bin
4 Enter regsvr32 mozctlx.dll
If this does not work, the directory containing regsvr32.exe is not in your PATH variable Use the Windows Find Files utility to locate the program and then run it using the full path; for example
For more information, see Macromedia Knowledge Base article 9927
Copyright © 2001, Macromedia Inc All rights reserved.
Comments
View comments on LiveDocs
Trang 27Configuring External Browsers
Using HomeSite
Configuring Browsers and Servers
Configuring External Browsers
As part of the installation process, the program compiles a list of the Web browsers it detects on your system You can view, add, edit, and delete browsers; you can change the default browser; and you can set the browsers' file saving behavior
To view the list of browsers:
● Select Options > Configure External Browsers
The External Browsers dialog box appears, listing the browsers it detects and providing options to change the default browser; add, edit, or delete
browsers; or set how an active document is handled when opening it in a browser
To add a browser to the list:
1 Select Options > Configure External Browsers to open the External
Browsers dialog box, if it is not already open
2 Make sure the browser is already installed on your machine, then click Add
3 Complete the Browser dialog box as follows:
❍ In the Name box, type a name for the new browser
❍ Click the file button beside the Location box, find the browser program file, and click Open
4 Click OK The new browser appears in the list in the External Browsers dialog box
5 Click OK to save your changes
To edit a browser in the list:
1 Select Options > Configure External Browsers to open the External
Browsers dialog box, if it is not already open
2 Click the browser to change and click Edit
3 Change values in the Browser dialog box as needed:
❍ Type a different name for the browser in the Name box
❍ Specify whether or not the browser uses DDE
❍ Choose a different program file for the browser (for example, for a later version of the browser)
4 Click OK to close the Browser dialog box
Trang 28Configuring External Browsers
5 Click OK to save your changes and close the External Browsers dialog box
To delete a browser from the list:
1 Select Options > Configure External Browsers to open the External
Browsers dialog box, if it is not already open
2 Click the browser to remove from the list and click Delete
3 Click Yes in the message that appears to confirm that you want to delete it
4 Click OK to save your changes and close the External Browsers dialog box
To change the default browser:
1 Select Options > Configure External Browsers to open the External
Browsers dialog box, if it is not already open
2 Select the appropriate browser and click the up arrow button until it is at the top of the list The default browser always appears at the top of the list
3 Click OK to save your changes and close the External Browsers dialog box
To set browsers' file saving behavior:
1 Select Options > Configure External Browsers to open the External
Browsers dialog box, if it is not already open
2 Choose one of the following options for handling a document when opening it
in an external browser:
❍ Prompt to save changes to the current document Asks you
whether or not to save the active document before opening it in the external browser
❍ Automatically save changes to the current document Saves the
active document before opening it in the external browser
❍ Browse using a temporary copy (no need to save) Copies the
active document and opens this copy in the external browser (this option is handy when making many edits to a page but it requires more system resources)
3 Click OK to save your changes and close the External Browsers dialog box
Note
If you selected the internal browser option to Use External Browser
Configuration for Internal Browser, then the file save behavior you specify
here applies to the internal browser too
To view pages in an external browser, do one of the following:
Trang 29Configuring External Browsers
● To view the active document in the default external browser, press F11
● To switch to a different browser, click the View External Browser List button
on the View toolbar, and select a browser from the list
Tip
To update the page in the browser after making changes to the file you
can click the browser's Refresh/Reload button or press F11 again
Copyright © 2001, Macromedia Inc All rights reserved.
Comments
View comments on LiveDocs
Trang 30Working with Files on Remote Servers
Using HomeSite
Configuring Browsers and Servers
Working with Files on Remote Servers
Working with directories and files on remote servers is virtually identical to working with them on local or network drives For example, when you save files, changes are saved to the remote server The primary difference is that you must establish a connection to a remote server before you can work with its files
You can work on remote servers from the Files tabs and from Windows Explorer via
Explorer shell integration If you do not need server access, you can clear the Options >
Settings > File Settings > FTP&RDS >Enable Explorer shell integration
Using the SNE node
The Macromedia FTP & RDS node, called the Shell Namespace Extension (SNE) node,
lets you work with files on configured remote servers in the application and in Windows Explorer You can add FTP servers from the SNE node (RDS access to servers is only available in ColdFusion Studio and JRun Studio.)
If you set the Drive list to My Computer, you can easily access all of your drives and SNE node servers on the File resource tab, as shown in the following graphic
In previous versions, the SNE node was called "Allaire FTP & RDS." In this version, the node is called "Macromedia FTP & RDS." If you install this version on a machine with a previous version of HomeSite, the previous version no longer recognizes the node To fix this, you must modify the SNE node
To use the SNE with earlier versions:
1 After completing the installation, run the SNECompatibility.exe program in the program directory; for example in C:\Program Files\Macromedia\HomeSite 5\SNECompatibility.exe
The Macromedia SNE Compatibility dialog box appears
Trang 31Working with Files on Remote Servers
2 Select the appropriate compatibility option:
❍ Allaire HomeSite/Studio 4.5.2 Enables the remote server functionality in
both this version and in previous versions and changes the name of the SNE node to "Allaire FTP & RDS."
❍ Macromedia HomeSite/Studio 5.0+ Enables the remote server
functionality only in this version
3 Click Switch to apply the change, and click Close
Connecting to servers
HomeSite provides FTP server access You can perform file transfers and other file
management tasks using Macromedia FTP & RDS
Required server information
You must have specific information about a remote server to connect to it, such as host name and user access requirements If you do not have this information, you must get it from the owner of that server, whether it is your IT group, an ISP, or another provider
Connecting to an FTP server
You can remotely access FTP servers for file transfers and other site management tasks using the Macromedia FTP & RDS feature Once the connection has been established, you can access files on remote servers and maintain Web sites located anywhere on the Internet
FTP server connection requirements vary greatly These instructions work in the majority
of cases, but you might have to try variations on the settings
Trang 32Working with Files on Remote Servers
3 Enter the following information for the server that you want to connect to:
Description Descriptive name to display
in the Files tab and in Windows Explorer
Host Name Server's IP address or
domain name, such as macromedia.com
Servers with ftp as part of the domain name require you to enter the complete name, for example
ftp.somesite.comInitial Directory Top-level directory for the
account
This is optional for accounts that default to the root directory of the FTP server, but it is required if the account specifies an initial directory
Relative from server-assigned directory
Option to specify if the Initial Directory should be set from the server-assigned user directory or from the server root
Clear this checkbox if the Initial Directory should be set from the server root
Username Login name for the account
used to access the remote server, or "anonymous" for anonymous FTP servers
If this field is left blank, you are asked for a username when you log in
Password Password for the account
used to access the remote server
If this field is left blank, you are asked for a password when you log in
Root URL The http:// address of the
site
This setting allows you to browse files that were opened from the remote server, edited, and saved.Remote Port Port used by the FTP server Use the default 21 unless
the server administrator or
ISP specifies another port.Request Timeout Maximum number of
seconds to wait for a server connection to complete
Trang 33Working with Files on Remote Servers
Disable passive mode
Option to select if the server does not use passive
connections
File time offset The number of hours ahead
or behind the current local time to use in the date/time information for files on the FTP server
If you set this value, you cannot select the Assume UTC file times option
Assume UTC file times
Option to adjust date/time information on the FTP server for servers using the Universal Coordinated Time format
Select this if you see incorrect date/time information for files on the FTP server
4 Click OK to complete the configuration
You can now work with files on the server
To view and edit the configuration for a remote server:
1 Right-click the server in the Macromedia FTP & RDS list and select Properties from the popup menu
2 Make the necessary changes, and then click OK to save the new server properties
To do a file size check after transferring a file:
1 Save, copy, or move the local file to the remote server using either of the following commands:
❍ File > Save or File > Save As from the menu
❍ File > Copy To or File > Move To from the right-click menu
2 If nothing happens, the file transfer was successful
An error message appears if there is a discrepancy between the byte counts of the local copy and the copy saved to the remote server
Enabling Secure FTP
Ipswitch FTP technology, installed with HomeSite, offers data security via Secure Sockets Layer (SSL) to servers that support 40-bit encryption and decryption A default certificate and key are installed The Ipswitch Help files are available for this dialog box
Trang 34Working with Files on Remote Servers
Note
Unicode files cannot be transferred successfully using SSL, so disable the
Secure (SSL) feature in the Configure FTP Server dialog box before
transferring these types of files
To enable SSL for an FTP connection:
1 Open the Properties dialog box and select the Secure (SSL) option
2 Click the Configure SSL button and make the appropriate certificate entries Click the Help button for information on these settings
3 Click OK
This table summarizes the error messages you could receive:
Unable to connect to the FTP server.Success
Remote Server Operation Failure: Winsock
Error: Connection aborted
SSL has not been enabled in the Configure FTP Server dialog box, and you attempt to connect to a server requiring SSL
Secure Connection Error - you have requested a
secure connection to the server but either the
server does not support SSL or WS_FTP could
not negotiate a secure connection This
connection is NOT secure Do you wish to
continue?
An SSL-enabled connection is selected at startup but SSL is disabled on the server
To revert to the installed certificate and key:
1 Select Options > Settings > File Settings > FTP & RDS > Reset FTP SSL
Certificate to Default
2 Click Apply
Note
For this release, Unicode and Unicode Big Endian files that are saved on
SSL-enabled FTP servers do not get created and saved correctly
Managing servers
Trang 35Working with Files on Remote Servers
You can easily change server configurations as needed
To view and edit the configuration for a server:
1 Right-click the server name in the Macromedia FTP & RDS list and select Properties from the menu
2 Make any changes as necessary in the Configure Server dialog box
3 Click OK to save your changes
Adding server mappings
By default, when you browse a document in the internal or external browser, it is opened from the local file system or returned via FTP from a remote server That is adequate for checking page content and formatting, but for developing a Web site you must see dynamic pages as the visitors to your site will actually experience them
To do this, you can route the documents through a Web server The server software can
be on the local machine, a network server, or a remote system So, instead of just
opening the files, an HTTP request for the page is sent to the server If any server-side processing is required, such as for server-side includes, forms, ColdFusion applications,
or Active Server Pages, the Web server will hand off the page to the appropriate server for further processing, then return it to the browser This is valuable for previewing
applications and site elements in a test environment before deploying the site
You establish this routing by associating the physical directories where your files are stored with the server that processes the files This association is called a mapping A wide range of Web servers is supported, so you can create multiple mappings and select which server to use for processing as needed Consult your server documentation or provider for the specifics of accessing server directories
Note
To use server mappings, either Microsoft Internet Explorer or Netscape Mozilla
NGLayout must be configured as the internal browser
Anwer these questions in the RDS dialog box:
Trang 36Working with Files on Remote Servers
This section provides instructions for adding a server mapping in HomeSite and in
Microsoft Internet Information Server (IIS), and how to set a default mapping
For more information on setting up server mappings, see Knowledge Base Articles 8347
and 8500 on the Macromedia Web site
To add a mapping:
1 Open the Options > Settings > Browse pane
2 If necessary, select either Microsoft Internet Explorer or Netscape
3 Select the Enable server mappings option
4 Click Add
5 Enter the document root path to map from
In this example, the IIS document root is used
6 Enter the server URL to map to
7 Click OK The mapping appears in the Settings pane
If you want to process documents from a location other than below the Web server root, you must identify the file path in the Web server The following procedure is based on a typical IIS installation; the procedure for your installation might differ If you are using a different Web server, consult your server documentation
To add a mapping in IIS:
1 Open the IIS Management Console and expand the IIS node
2 Right-click on Default Web Server and select New > Virtual Directory
3 Follow the steps in the New Virtual Directory Wizard to add the directory
4 Follow the steps in the procedure for adding a mapping, being sure to include the full virtual directory path in the URL
Note
If you set up multiple mappings, you must switch to the appropriate mapping
for the document you want to process
To edit a mapping:
1 Select the mapping in the list and click Edit
2 Make changes as necessary and click OK
To change to a different mapping:
● Select the mapping to switch to in mappings list
Trang 37Working with Files on Remote Servers
To set a mapping as the default:
1 Select Options > Settings and click Browse
2 Select the entry that you want to move in mappings list
3 Click the up arrow button to move the entry to the top of the list
Trang 38Exploring the Workspace
Using HomeSite
Chapter 3
Exploring the Workspace
This chapter acquaints you with the main areas of the interface It also gives you some pointers on customizing the workspace to make all of your development work
as productive as possible
Contents
● The Workspace Areas
● Working in the Resources Window
● Creating and Browsing Files in the Document Window
● Tracking Your Work in the Results Window
● Customizing the Workspace
● Getting the Most from the Help System
Copyright © 2001, Macromedia Inc All rights reserved.
Comments
View comments on LiveDocs
Trang 39The Workspace Areas
Using HomeSite
Exploring the Workspace
The Workspace Areas
The term workspace describes the user interface that you see when you first load the program The workspace has four principal areas:
● Command area At the top of the workspace is the title bar, which displays the file path of the current document Below that is the menu bar, which contains standard Windows commands plus development menus Below the menus are toolbars that provide one-click access to commands and application tools To the right is the QuickBar, a tabbed toolbar for inserting JSP, HTML, and other language elements
● Resources window Tabs for file management, data sources, projects, code snippets, online Help, and the Tag Inspector.
● Document window Tabs for writing and browsing pages.
● Results window Tabs to track search and replace operations, code validation, link verification, images, project deployment, and compilation
The following illustration shows the main workspace areas
Trang 40The Workspace Areas