mixhtml

GET EXAMPLES

Get item

A GET request is usually used to get data.

Request

mix-get In a hyperlink, the url in the href attribute is used

<a href="item" mix-get>Get item</a>

mix-get In a form, the url in the action attribute is used

<form action="items" mix-get>Get item</form>

mix-get In a button, the url in the mix-get attribute is used

<button mix-get="item">Get item</button>

Response

browser

It is a tag that will instruct the browser to do something. This tag can be called anything, but hardly recommended to be called "browser" so it is easier to know that the browser will parse it

GET and show right away

Request

<button mix-get="user">
    Get user
</button>

Response

<browser mix-after-begin="#users">
    <div>
        <img src="unknown.png" >
        <div>John</div>
        <div>Doe</div>
    </div>
</browser>

GET and show slowly

Request

<button mix-get="user">
    Get user
</button>

Response

<browser mix-after-begin="#users">
    <div mix-fade-2000">
        <img src="unknown.png" >
        <div>John</div>
        <div>Doe</div>
    </div>
</browser>

GET and show with hyperlink

Get user

Request

<a href="users" mix-get>
    Get user
</a>

Response

<browser mix-after-begin="#users">
    <div mix-fade-2000">
        <img src="unknown.png" >
        <div>John</div>
        <div>Doe</div>
    </div>
</browser>