Content last modified Monday 6 March 2017
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
Article modified:
24 Apr 2010

You may want to leave your comments/questions at the Forum thread for quicker feedback. Otherwise, comment away:

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
Published with Textpattern