Categories:
Author:
About It:
Get it:
Rate it:
Flag it:
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>
Keywords/tags:
Initially released:
21-02-2010Posted here:
23 Feb 2010Article modified:
24 Apr 2010









You may want to leave your comments/questions at the Forum thread for quicker feedback. Otherwise, comment away:
Subscribe to this article's comments RSS feed. [ ? ] View Recent Comments across the site.