--- { "title": "Data Ajax", "language": "en", "category": "Plugins", "description": "A basic AjaxLoader wrapper that inserts AJAXed-in content.", "tag": "data-ajax", "parentdir": "data-ajax", "altLangPrefix": "data-ajax", "css": ["demo/data-ajax"], "dateModified": "2015-03-09" } ---
A basic AjaxLoader wrapper that inserts AJAXed in content.
data-ajax-after)Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text.
Different example text. Different example text. Different example text. Different example text. Different example text. Different example text.
<section data-ajax-after="ajax/data-ajax-extra-en.html" class="original">
<h4>Hello World</h4>
<p>Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text.</p>
</section>
<section data-ajax-after="ajax/data-ajax-extra-2-en.html" class="original">
<h4>Hello World - Part 2</h4>
<p>Different example text. Different example text. Different example text. Different example text. Different example text. Different example text.</p>
</section>
<section class="ajaxed-in">
<h4>J'ai été affiché via Ajax</h4>
<p>J'ai été affiché via Ajax. J'ai été affiché via Ajax. J'ai été affiché via Ajax. J'ai été affiché via Ajax. J'ai été affiché via Ajax. J'ai été affiché via Ajax. J'ai été affiché via Ajax.</p>
</section>
<section class="ajaxed-in">
<h4>I was ajaxed in - Part 2</h4>
<p>I was ajaxed in - Part 2. I was ajaxed in - Part 2. I was ajaxed in - Part 2. I was ajaxed in - Part 2. I was ajaxed in - Part 2. I was ajaxed in - Part 2.</p>
</section>
data-ajax-append)Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text.
Different example text. Different example text. Different example text. Different example text. Different example text. Different example text.
<div data-ajax-append="ajax/data-ajax-extra-en.html" class="original">
<p>Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text.</p>
</div>
<div data-ajax-append="ajax/data-ajax-extra-2-en.html" class="original">
<p>Different example text. Different example text. Different example text. Different example text. Different example text. Different example text.</p>
</div>
<section class="ajaxed-in">
<h4>I was ajaxed in</h4>
<p>I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in.</p>
</section>
<section class="ajaxed-in">
<h4>I was ajaxed in - Part 2</h4>
<p>I was ajaxed in - Part 2. I was ajaxed in - Part 2. I was ajaxed in - Part 2. I was ajaxed in - Part 2. I was ajaxed in - Part 2. I was ajaxed in - Part 2.</p>
</section>
data-ajax-before)Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text.
Different example text. Different example text. Different example text. Different example text. Different example text. Different example text.
<section data-ajax-before="ajax/data-ajax-extra-en.html" class="original">
<h4>Hello World</h4>
<p>Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text.</p>
</section>
<section data-ajax-before="ajax/data-ajax-extra-2-en.html" class="original">
<h4>Hello World - Part 2</h4>
<p>Different example text. Different example text. Different example text. Different example text. Different example text. Different example text.</p>
</section>
<section class="ajaxed-in">
<h4>I was ajaxed in</h4>
<p>I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in.</p>
</section>
<section class="ajaxed-in">
<h4>I was ajaxed in - Part 2</h4>
<p>I was ajaxed in - Part 2. I was ajaxed in - Part 2. I was ajaxed in - Part 2. I was ajaxed in - Part 2. I was ajaxed in - Part 2. I was ajaxed in - Part 2.</p>
</section>
data-ajax-prepend)Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text.
Different example text. Different example text. Different example text. Different example text. Different example text. Different example text.
<div data-ajax-prepend="ajax/data-ajax-extra-en.html" class="original">
<p>Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text.</p>
</div>
<div data-ajax-prepend="ajax/data-ajax-extra-2-en.html" class="original">
<p>Different example text. Different example text. Different example text. Different example text. Different example text. Different example text.</p>
</div>
<section class="ajaxed-in">
<h4>I was ajaxed in</h4>
<p>I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in.</p>
</section>
<section class="ajaxed-in">
<h4>I was ajaxed in - Part 2</h4>
<p>I was ajaxed in - Part 2. I was ajaxed in - Part 2. I was ajaxed in - Part 2. I was ajaxed in - Part 2. I was ajaxed in - Part 2. I was ajaxed in - Part 2.</p>
</section>
data-ajax-replace)Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text.
Different example text. Different example text. Different example text. Different example text. Different example text. Different example text.
<div data-ajax-replace="ajax/data-ajax-extra-en.html" class="original">
<section>
<h4>Hello World</h4>
<p>Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text.</p>
</section>
</div>
<div data-ajax-replace="ajax/data-ajax-extra-2-en.html" class="original">
<section>
<h4>Hello World - Part 2</h4>
<p>Different example text. Different example text. Different example text. Different example text. Different example text. Different example text.</p>
</section>
</div>
<section class="ajaxed-in">
<h4>I was ajaxed in</h4>
<p>I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in.</p>
</section>
<section class="ajaxed-in">
<h4>I was ajaxed in - Part 2</h4>
<p>I was ajaxed in - Part 2. I was ajaxed in - Part 2. I was ajaxed in - Part 2. I was ajaxed in - Part 2. I was ajaxed in - Part 2. I was ajaxed in - Part 2.</p>
</section>
ajax/data-ajax-extra-en.html#filter-id, v4.0.12+)Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text.
<div data-ajax-append="ajax/data-ajax-filter-en.html#filter-id" class="original">
<p>Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text.</p>
</div>
<section id="filter-id" class="ajaxed-in">
<h4>I was ajaxed in and filtered by the URL hash</h4>
<p>I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in.</p>
</section>
<section class="ajaxed-in filter-selector">
<h4>I was ajaxed in and filtered by a selector</h4>
<p>I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in.</p>
</section>
ajax/data-ajax-extra-en.html .filter-selector, v4.0.12+)Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text.
<div data-ajax-append="ajax/data-ajax-filter-en.html .filter-selector" class="original">
<p>Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text.</p>
</div>
<section id="filter-id" class="ajaxed-in">
<h4>I was ajaxed in and filtered by the URL hash</h4>
<p>I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in.</p>
</section>
<section class="ajaxed-in filter-selector">
<h4>I was ajaxed in and filtered by a selector</h4>
<p>I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in.</p>
</section>
Consult the documentation for more information regarding the following alternative syntaxt.
Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text.
<div data-wb-ajax='{
"url": "ajax/data-ajax-extra-en.html",
"type": "append"
}' class="original">
<section>
<h4>Hello World</h4>
<p>Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text. Example text.</p>
</section>
</div>
<section class="ajaxed-in">
<h4>I was ajaxed in</h4>
<p>I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in.</p>
</section>
AJAX-in content on the condition that the HTTP Referrer matches the httpref value. Use regular expression to refine your HTTP referrer to a broader range of pages.
To be used for promotional content that is not pertinent to task completion. If you have multiple httpref, see documentation for advanced usage.
This content will be replaced if you browse to this page from the French version of this page
<div data-wb-ajax='{
"url": "ajax/httpref.html#enlang",
"type": "replace",
"httpref": "data-ajax-fr.html"
}'>
<p>This content will be replaced if you browse to this page from the <a href="../data-ajax-en.html">French version of this page</a> page</p>
</div>