Displaying Web Content¶
Displaying websites in a visualization
Drag the Web browser element from Special controls to the visualization editor.
Select the element in the editor.
- ⇒
In the Properties view, the element properties are listed for the Web browser element.
In the Width and the Height (example:
property, specify the size (in pixels) for the600
).In
, specify the URL for the website (example:'http://de.wikipedia.org'
). You can also specify a variable here (STRING
orWSTRING
) where the URL is assined in the project.In
, specify a Boolean variable (example:bSetURL
).- ⇒
If the variable
bSetURL
has the the valueTRUE
, then the website'http://de.wikipedia.org'
is displayed at runtime.
Configuring the buttons for forward and back navigation of the website
In a POU, declare both Boolean variables
bGoBack
andbGoForward
.In the visualization editor, click the Web browser.
For the property
, select the variablebGoBack
from the input assistant. For the property , select the variablebGoForward
.In General controls, add the Button element to your visualization two times.
Click a Button in the visualization editor and drag the Button to the required position (for example above the Web browser element).
In the property
, specify the character>
. In , select a font from the input assistant (example:Arial, Fett, 14
).Configure the property
so that the variablebGoForward
switches.Configure the second button for back navigation in the same way as described in steps 5 to 7.
- ⇒
If the variable
bSetURL
has the valueTRUE
, then the website'http://de.wikipedia.org'
is displayed with the forward and back buttons. When you click the buttons, navigation to the previous and next websites is successful.
See also