- Overview
- The available actions
- Preset actions
- Specific actions
- Special case: sharing on social networks
- Action destination
Choosing the action associated with the button (WEBDEV)
Regardless of the button type, you can associate an action with the button. WEBDEV offers the most common actions in the "General" tab of the control description window. For more specific actions, click "More options". In any case, you will have to define the destination of this action. Preset actions Several preset actions are proposed by default in a drop-down list box. These preset actions depend on the elements in the page or project. For example, you can choose to: - execute the click code of a Button control (browser code or server and browser code),
- 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, different parameters can be specified.
Caution: the actions are performed after the click code of the button (browser code and server code). Specific actions The "More options" link shows more options. You can for example: - do an action on another control,
- set the position on one of the page anchors,
- share a social network,
- change current language
- send the value of the page controls to ... a page or a 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 in the code. Special case: sharing on social networks 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). The Social Network control has advanced settings (e.g., display the number of shares, etc.). The table below presents the information used for each social network: | | | Social Network | Shared element | Effect |
---|
Facebook | The 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 current web page. | | Custom target | The URL must be typed in the "Target URL" control. Case 1: URL of a Facebook page: Increments the counter of Facebook page that was liked.
Case 2: URL of any page or site: Creates a Facebook post with a link to the specified page or website. | Twitter | The domain | Creates a Tweet with a link to the domain of the current website. | | The page | Creates a Tweet with a link to the current page. | | Custom target | The URL must be typed in the "Target URL" control. Creates a Tweet with a link to specified URL. | LinkedIn | The 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" control. | Tumblr | The 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 current web page. | | Custom target | The URL must be typed in the "Target URL" control. Creates a Tumblr post with a link to specified URL. | New in version 28WhatsApp | The page | Creates a WhatsApp message with a link to the current page. | | Custom target | The URL must be typed in the "Target URL" control. 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. If no destination is chosen for the action, the action is performed in the default destination defined for the current page. The possible destinations of an action via a Button control are as follows: | | New browser (_blank): Displays the result in a new browser window. | | Current frame (_self): Displays the result in the same frame. | | 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. | |
|
|
|
|