|
|
|
|
|
- Overview
- Available actions
- Preset actions
- Specific actions
- Special case: share on a social network
- The destination of the action
Choosing the action associated with a WEBDEV button
Whatever the type of button, it is possible to associate an action with it. The most common actions are available in the "General" tab of the control description window. For more specific actions, click "More options". In any case, you need to specify the destination of the action. Preset actions Different preset actions are available in a drop-down list. These preset actions depend on the elements in the page or project. For example, you can choose to: - Automatic detection of server and browser codes to be executed:
- If the "Click (Server)" event contains WLanguage code, this code will be automatically executed on the server.. In fact, the browser will automatically call the server to execute this server code.
- If no code is present in the "Click (Server)" event, the server will not be called.
- Always execute server and browser codes,
- Run browser click code only,
- Display a page of the site,
- Display a page from another site,
- Perform a custom action (send an email, call a phone number, connect to an FTP server, download a file, etc.). In this case, you can specify different parameters.
Caution: the actions are performed after the click code of the button (browser code and server code). Specific actions The "More options" link shows additional options. You can for example: - do an action on another control,
- set the position on one of the page anchors,
- share on a social network,
- change the current language,
- send the value of the page controls to ... a page or script. For example, this option can be used to process the content of a form in a static site.
Remark: All these operations can also be performed programmatically. Special case: share on a social network The "Share on a social network" action allows you to create a Button, Link or Image control (with clickable areas) to share the current page, domain or specific URL on a social network. This action can also be performed via the Social Network control. Remark: Using a Button, Link or Image control (with clickable areas) allows you to fully configure the style used (however, it is recommended to comply with the license agreements of the different social networks). control Social Network offers advanced parameterization (display of number of shares, etc.).. The table below presents the information used for each social network: | | | Social Network | Shared element | Effect |
---|
Facebook | Domain | Creates a Facebook post with a link to the domain of the current website. Caution: A default index page must exist on the hosting server. | | The page | Creates a Facebook post with a link to the page of the current website. | | Custom target | The URL must be typed in the "Target URL" field. Case 1: URL of a Facebook page: Increments the counter of the liked Facebook page. Case 2: URL of any page or site: Creates a Facebook post with a link to the specified page or website. | Twitter | Domain | Creates a Tweet with a link to the domain of the current website. | | The page | Creates a Tweet with a link to the page of the current website. | | Custom target | The URL must be typed in the "Target URL" field. Creates a Tweet with a link to specified URL. | LinkedIn | Domain | Creates a LinkedIn post with a link to the domain. Caution: A default index page must exist on the hosting server. | | The page | Creates a LinkedIn post with a link to the web page. | | Custom target | Creates a LinkedIn post with a custom link. The URL of the link to be sent must be entered in the "Target URL" field. | Tumblr | Domain | Creates a Tumblr post with a link to the domain of the current website. | | The page | Creates a Tumblr post with a link to the page of the current website. | | Custom target | The URL must be typed in the "Target URL" field. Creates a Tumblr post with a link to specified URL. | WhatsApp | The page | Creates a WhatsApp message with a link to the page of the current website. | | Custom target | The URL must be typed in the "Target URL" field. Creates a WhatsApp message with a link to the specified URL. |
The "Destination" field is used to select the display mode of the connection and input window on the social network. The destination of the action If no destination is chosen for the action, it is performed in the default destination defined for the current page. The possible destinations of an action performed via a Button control are as follows: | | At the same location (_self): Displays the result in the same browser. | | New browser tab (_blank): Displays the result in a new browser window. | | Named browser tab: Displays the result in an existing browser window. | | Parent frame (_parent): Displays the result in the parent frame (case of nested framesets). | | Current browser (_top): Displays the result in the current page of the browser (without frames). | | Other frames of the frameset (if the page belongs to a frameset): Displays the result in a specific frame. | | iFrame control of the page (if the page contains at least one iFrame control): Displays the result in an iFrame control. | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|