spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / javascript / column49


Using JavaScript in HomeSite 4.0, Part II

Developer News
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?

Manipulating Projects, Part II

RemoveFileFromProject(fileName)Boolean

Removes a file (fileName) from the active project. Returns a true value if successful, a false value otherwise. The list of files in the Project Window, though, will not be refreshed automatically.

ShowLastProjectError()None

Shows the last project-related error. The exact same message box is displayed again as in the original occurrence. For example, the following request to add a non-existence file to a project:

app.AddFileToProject("U:\\kuku")

yields the following message box:

A subsequent call to ShowLastProjectError() yields the same message box as above.

UploadProjectDlg()None

Displays the Upload Project dialog. Here is an example of this dialog box:

UploadProject(ftpServer, forceLowerCaseFlag, uploadOnlyNewerFlag, ColdFusionEncryptFlag)Boolean

Uploads the active project to the specified server (ftpServer), according to the given flags. The ftp server should be one of the servers currently defined in the Server Window. The Upload Project dialog window above shows the two servers defined in our example. You specify the ftpServer exactly as it is specified in the Upload Project dialog window. In our example, the ftpServer can either be "ftp://Webreference" or "ftp://Doc JavaScript".

http://www.internet.com

Produced by Yehuda Shiran and Tomer Shiran

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Rolling Out Your Own HTML Application Version Control · HTML 5: Client-side Storage · Working with Ajax Server Extensions
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Wi-Fi Product Watch, November 2009 · Chip Market Recovering From '08 Collapse · Low-Cost Tools to Kickstart Your New Business


Created: September 27, 1999
Revised: September 27, 1999

URL: http://www.webreference.com/js/column49/projects2.html