asp.net.ph

Skip Navigation Links

ImportExportFavorites Method

DHTML Methods


Imports or exports Favorites information.

Syntax

window.external.ImportExportFavorites ( 
   bImportExport, sImportExportPath ) 
Parameters

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.

Return Value

No return value.

Remarks

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.

Example

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 );
Applies To

external



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note