Content last modified Monday 3 September 2018
hop to #bottom
Categories:
Author:
About It:
Get it:
Rate it:
  • Helpful?
  • 0 Yes
  • 0 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

jdw_if_ajax

Since dub_if_ajax is no longer up for grabs: here’s jdw_if_ajax .

This plugin is based off dub_if_ajax (no longer available) by Jamie Wilkinson. It uses the x-requested-with header to deliver different content to Ajax calls.

Addition of a new tag: jdw_if_not_ajax.

jdw_if_ajax

Container tag. When the page or form is requested by ajax, content will show.
<txp:jdw_if_ajax>
// code for ajax goes here
<txp:else />
//other code goes here
</txp:jdw_if_ajax>

jdw_if_not_ajax

Container tag. When the page or form is requested by ajax, content won’t show.

<txp:jdw_if_not_ajax>
// skipped by ajax
</txp:jdw_if_not_ajax>
Article Request Count:
Keywords/tags:
Initially released:
21-02-2010
Posted here:
23 Feb 2010

You know you want to visit the Archives.
Published with Textpattern