Área Web
Acesso a métodos 4D
You can call 4D methods from the JavaScript code executed in a Web area and get values in return. To be able to call 4D methods from a Web area, you must activate the 4D methods accessibility property ("all").
This property is only available if the Web area uses the embedded Web rendering engine.
When this property is on, a special JavaScript object named $4d
is instantiated in the Web area, which you can use to manage calls to 4D project methods.
Gramática JSON
Nome | Tipo de dados | Valores possíveis |
---|---|---|
methodsAccessibility | string | "none" (padrão), "all" |
Objectos suportados
Progressão
Nome de uma variável do tipo Longint. This variable will receive a value between 0 and 100, representing the page load completion percentage in the Web area. Atualizado automaticamente por 4D, não pode ser modificado manualmente.
Gramática JSON
Nome | Tipo de dados | Valores possíveis |
---|---|---|
progressSource | string | Nome de uma variável Longint |
Objectos suportados
URL
A String type variable that designates the URL loaded or being loading by the associated Web area. The association between the variable and the Web area works in both directions:
- If the user assigns a new URL to the variable, this URL is automatically loaded by the Web area.
- Any browsing done within the Web area will automatically update the contents of the variable.
Schematically, this variable functions like the address area of a Web browser. Pode representá-lo através de uma área de texto por cima da área Web.