ExpressionEngine addons Lab
FAQ

Features

MX Ajax Detect is a small and simple plugin detect is template was request by AJAX or not. For example, you create a website where all links opens in modal windows by ajax. But what happened if user turned off his javascript? The better to bee sure that user will see a full page not only simple block for modal windows. One of way is to use Ajax Detect plugin.

Requirements

  • EE1 - PHP 4+, ExpressionEngine 1.6.5+
  • EE2 - PHP 5+, ExpressionEngine 2+

Installation

MX Ajax Detect contains a single plugin file. To install the new field type please follow the simple instructions below:
  • Download the MX Ajax Detect archive and extract the files.
  • EE1: Copy pi.ajax_detect.php to /system/plugins/
  • EE2: Copy ajax_detect folder to /system/expressionengine/third_party/

Tags


{exp:ajax_detect}
	{if ajax} 
		special  code for ajax
	{if:else}
		for request without ajax
	{/if}
{/exp:ajax_detect}
		

Change Log

ExpressionEngine2

  • 2.0.1 - 12/02/2009:
    Initial release

ExpressionEngine1

  • 0.04 - 08/22/2009:
    Initial release

MX Ajax Detect

Download MX Ajax Detect  0.04

Version: 0.04
Released: 08/22/2009

Download MX Ajax Detect  2.0.1

Version: 2.0.1
Released: 12/02/2009

Thank Me By ‘Buying Me A Cup Of Coffee'

Like my add-ons?
Consider buying me coffee.

Like it? Tweet it!

Digg itAdd to Stumbleupon Share whith Facebook

http://eec.ms/s9px

Follow me on twitter