FormFactor method: Request class

Syntax

FormFactor(form_factor)

Description

Use the FormFactor method to return the ceiling (the maximum device width in physical pixels) defined in the web server's configuration files for the specified form factor.

Important:

Use this method within fluid applications only.

Parameters

Parameter Description

form_factor

Specifies the form factor as an integer. The value can be one of the following constants:

Numeric Value Constant Value Default Ceiling (in physical pixels)

0

%FormFactor_Small

519

1

%FormFactor_Medium

759

2

%FormFactor_Large

959

3

%FormFactor_Xlarge

9999999

Returns

An Integer value.

Example

If %Request.FormFactor(%FormFactor_Small) <= 400 Then 
   ...
End-If;