I'm trying to figure out what I'm doing wrong here - if I access the URL I'm trying to load with jquery directly, the content loads fine. But when I use jquery, nothing loads in, despite the fact that the console reports a successful load. This is my code:
<div id="bio_switcher">
<a href="[removed]void(0);" class="alix active" data-ident="alix_lambert">Alix Lambert</a>
<a href="[removed]void(0);" class="david" data-ident="david_mcmahon">David McMahon</a>
</div>
<div id="bio_container">
</div>
$('#bio_switcher a').click(function(){
$('#bio_container').load('/index.php/ajax/bios/2',showContent);
});
INDEX.PHP/AJAX/BIOS/2 :
{exp:channel:entries channel="bios" limit="1" {if segment_3 !=""} url_title="{segment_3}"{/if}}
<div id="bio_content">
{bio_content}
</div>
<div id="bio_photo">
<img src="{bio_photo}" alt="{title}" />
</div>
{/exp:channel:entries}
Any ideas would be appreciated. Thanks!