DHTML Methods
Imports or exports Favorites information.
window.external.ImportExportFavorites (
bImportExport, sImportExportPath )
bImportExport |
Required. Boolean specifying if an import or an export is being requested. If the Boolean is true, an import is being requested. If the Boolean is false, an export is being requested. |
sImportExportPath |
Optional. String specifying the location ( URL ) to import or export, depending on bImportExport. If a value is not provided, a file dialog is opened. |
No return value.
Confirmation is always required before the import or export begins.
All favorites are uploaded to the server when exported, and it is recommended that the server be configured to erase previously stored favorites before accepting the updates. Favorites imported from the server merge with existing favorites on the client. Deletions on the server do not propogate to the client.
The following samples demonstrate the use of the ImportExportFavorites method.
// 'true' specifies that the favorites are
// imported from the server.
window.external.ImportExportFavorites ( true,
"http://www.your_server.com" );
// 'false' specifies that the favorites are
// exported to the server.
window.external.ImportExportFavorites ( false,
"http://www.your_server.com" );
// If the path is not provided,
// a dialog box is opened.
window.external.ImportExportFavorites ( false );
external