pp108 : onBeforeDownload

onBeforeDownload

This event is fired before the download request is sent.

Syntax

Inline HTML

<div cordysType="wcp.library.util.Download" onBeforeDownload ="handler" />\

Event Property

object.onBeforeDownload = handler

Event Information

To invoke

Call thedownloadfilemethod on the object.

Default Action

Initiates any action associated with this event.

Named Script

onBeforeDownload

Event Object Properties

An event handler can access the event object and its properties through the eventObject available as a parameter on the handler.

Property

Description

srcElement

Object that denotes the Download control. All properties of the object are available for update.

returnValue

Boolean that denotes whether the download operation can be continued or not. To cancel the event, you can set the value of this property to false.

  • true: Default. Download operation must be continued.
  • false: Download operation must not be continued.

Applies to

Download

Related reference

Download
request Property
searchPath Property