data-endpoint

Sets ajax endpoint, the remote file that will be requested.

Required if you are not using data-endpoint-container.

Usages


  • data-endpoint="relative_url"
  • data-endpoint="/absolute_url"
  • data-endpoint="http://full_url"

Examples


  • data-endpoint="world.php"
  • data-endpoint="/hello/world.php"
  • data-endpoint="http://www.example.com/hello/world.php"

Live examples

This form looks like this:


<div id="inputs">
    <input
            type="button"
            value="Click me"
            class="btn domajax click"
            data-endpoint="endpoint-relative-handler.php"
            data-output="#output"
            />
</div>

<div id="output">Click on the button above</div>

This form looks like this:


<input
        type="button"
        value="Click me"
        class="btn domajax click"
        data-endpoint="/demo/endpoint-full-handler.php"
        data-output="#output"
        />

<div id="output">Click on the button above</div>

This form looks like this:


<div id="inputs">
    <input
            type="button"
            value="Click me"
            class="btn domajax click"
            data-endpoint="http://domajax.fuz.org/demo/endpoint-full-handler.php"
            data-output="#output"
            />
</div>

<div id="output">Click on the button above</div>


See also    data-endpoint-container 

Table of contents

All the documentation at a glance

Domajax options

And more with domajax