Tabs plugin - rel instead of href (if present)

Tabs plugin - rel instead of href (if present)


At the moment, the tabs plugin uses ajax on the href attribute and
loads it's content. To improve graceful degradation, how would you get
it to use rel instead? For instance:
<li><a href="page1.php" rel="page1_ajax.php"><span>Tab 1</span></a></
li>
At the moment, page1.php would be loaded into a tab. page1_ajax.php
would be the preferred page to load if ajax is used. page1.php
contains the whole page, including navigation etc, but page1_ajax.php
only contains the contents.
The only workaround is to check the request headers on the php page
and send the contents only if it is an AJAX request:
if($_SERVER["X-Requested-With"] == "XMLHttpRequest")
{
.... send content only
}
else
{
.... send whole page
}