contents   index   previous   next



TrapFileDataMethods:TrapFileData

 

If TrapFileEnableProperties:TrapFileEnable is set to TRUE (see Section 3.1.9), then FileRequestEvents:FileRequest event will fire when a request is received by WebX. The developer can choose to inspect the name of the requested file and query string and also bypass the subsequent search for a file and return data directly to the client. The TrapFileDataMethods:TrapFileData is used to return the data the application is to send to the client.

 

This will allow developers to embed all of their web pages within their applications, keeping proprietary and protecting users from modifying the HTML pages of your web site/application.

 

 

 

Parameter Type Description
Index Integer Used to link the returned data to the requesting connection.
Data Variant Contains the data to be sent to the requesting client.
[WebXProcess] Boolean Optional. Default Value = TRUE. If TRUE, the application will not send any data to the client and WebX will look for the file (HTML or binary) to be sent. If FALSE the application will provide WebX the data to be sent to the client in Data.
[ContentType] String Optional. Default Value = "text/html". This is the Content Type (MIME) that is being sent to the client.
[Authorized] Boolean Optional. The user requesting the directory can be authorized to receive the page by the developer.

 

 

Table 3.2.1 – TrapFileDataMethods:TrapFileData Method Parameters

 


Events