Testing ajax loaded content...

Loaded at

The hover popup is a little different, and requires some trickery. It uses the same URL for both the content in the popup and the link that you click. This keeps things easy from the JS standpoint, but a bit more difficult on the backend.

jQuery is kind enough to send a little extra information along when it is making an AJAX request. We can use this information to serve up different versions of the page.

Here is a tutorial on how the extra information can be used. For those using the PHP side of the IxF framework, you are provided an isAjax() function that will return true if it is ajax. So you can do the following for a page that you want to serve up two different things based on if it's an ajax request or not.

<? if( isAjax() ){ ?>
	<p>Content for ajax here.</p>
<? } else { ?>
	<p>Normal content here.</p>
<? } ?>