Action: INVOKE_BROWSER

INVOKE_BROWSER action is used to invoke browser. Typical use is providing a link to a website.

Attributes Value Mandatory
action_name INVOKE_BROWSER Yes
event_list comma separated list of events, eg: TAP Yes
target   No
input_parameter_list url or field name containing url Yes

Note

url has to include the full path http://wwww..... If you give www..., it will not work.

Example 1:

Here the url is given in input_parameter_list. On tapping a link, browser with the url specified is invoked

<control type="TEXT" x="2" y="3" width="57" height="8" appearance_name="blue" data_type="VARCHAR" default_value="http://www.appemble.com">
    <actions>
        <action event_list="TAP" action_name="INVOKE_BROWSER"
            target="" input_parameter_list="http://www.appemble.com" />
    </actions>
    </control>

Example 2:

Here the user inputs the url and on tap of PUSHBUTTON, browser with that url is invoked.

<control type="EDIT" x="35" y="31" width="57" height="8" appearance_name="edit_box" data_type="VARCHAR"
         field_name="url" size="80"/>
<control type="PUSHBUTTON" x="35" y="42" width="57" height="8" appearance_name="blue_button" data_type="VARCHAR"
             default_value="INVOKE_BROWSER">
            <actions>
                         <action event_list="TAP" action_name="INVOKE_BROWSER"
                                 target="" input_parameter_list="url" target_parameter_list="url"/>
                    </actions>
    </control>

Reference tutorial

This chapter uses source code from appemble-tutorial-actions. If you have not downloaded tutorial source code, click on Download Source Code - Tutorials

Android - Right click on appemble-tutorial-actions and click on Run as Android application.

iOS - Select scheme appemble-tutorial-actions and iPhone x.x simulator. Click on Product -> Run.

Good Read

If you want the url to open within the app, then you can use WEBVIEW control instead.