Request
<button mix-post="items">
Do something
</button>
Response
<browser
mix-function="test"
>
["a","b","c"]
</browser>
If the browser needs to run a function, after the response, then mix-function can be used.
In this example, the request is sent and the response will instruct the browser to run a function called "test" passing an array with letters as the argument. An alert will popup with the argument.
Note: Anything that is passed between the "browser" tags, will be the argument in the function. Only 1 argument can be passed. If you need to pass more arguments, then use an array, a json object, or use mix-script .
<button mix-post="items">
Do something
</button>
<browser
mix-function="test"
>
["a","b","c"]
</browser>