spacer

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

home / experts / javascript / column48


Using JavaScript in HomeSite 4.0, Part I

Developer News
OpenOffice 3.2 Lands Amid Critical Changes
Red Hat, IBM Firmly in KVM Virtualization Camp
Red Hat Talks Up Open Source Cloud Plans

The Application Object's Methods, Part I

BringToFront()None

Brings the main window to the front of other applications. If the desktop is crouded with many applications, this function can help you get a hand on your HomeSite workplace.

BrowseText(text, baseHREF)None

Displays the passed text (the value of the text parameter) in the internal browser. The baseHREF parameter is used to interpret relative paths. For local files, it should be the folder the file is in. Don't forget the trailing backslash when entering a local path (e.g., "f:\\share\\"). Also note that backslashes must be escaped by preceding backslashes, so a backslash is represented by two backslashes in the string.

CloseAll(promptToSave)Boolean

Closes all open documents. If promptToSave receives a true value, the user will be prompted to save any changes for files that were modified since their last save. The function returns a Boolean value depending on the success of the operation. In other words, it returns 1 if all of the documents were successfully closed. Otherwise, if you assign the promptToSave parameter a false value, and the user clicks "Cancel" on one of the prompts, the method returns 0 (a false value).

ExtractFileName(fullPath)String

Extracts the file portion of the passed filename's full path. For example, if fullPath is "D:\\PROGRAM FILES\\ALLAIRE\\HOMESITE4\\HOMESITE4.EXE," the method returns "HOMESITE4.EXE." The method can also handle Web-based file names. For example, if fullPath is "http://www.webreference.com/js/index.html", it returns "index.html."

ExtractFilePath(fullPath)String

Extracts the passed file's full path, including a trailing backslash. For example, if fileName is "D:\\PROGRAM FILES\\ALLAIRE\\HOMESITE4\\HOMESITE4.EXE," the method returns "D:\PROGRAM FILES\ALLAIRE\HOMESITE4\." The method can also handle Web-based file names. For example, if fileName is "http://www.webreference.com/js/index.html," it returns "http://www.webreference.com/js/."

http://www.internet.com

Produced by Yehuda Shiran and Tomer Shiran


The Network for Technology Professionals

Search:

About Internet.com

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

webref The latest from WebReference.com Browse >
Search Engine Optimization: Selecting and Embedding Keywords · Are Google's Language Translation Web Services Ready for Prime Time? · Installing and Using Meeplace, the Business Review CMS
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
IBM DB2 10 for z/OS: Justifying the Upgrade · Living La Vida Colo: Choosing the Right Colocation Facility · FTC Concerns over Social Media Privacy Linger


Created: September 13, 1999
Revised: September 13, 1999

URL: http://www.webreference.com/js/column48/appmet1.html