In the page
…
<div id="a_tabbar" style="width:500px; height:450px;"/>
<script>
var tabbar;
function doOnLoad() {
tabbar = new dhtmlXTabBar("a_tabbar", "top");
tabbar.setSkin('dhx_skyblue');
tabbar.setImagePath("<?php echo bloginfo('stylesheet_directory').'/js/imgs/';?>");
tabbar.addTab("a1", "Content", "100px");
tabbar.addTab("a2", "Transcript", "100px");
tabbar.addTab("a2", "Excerpt", "100px");
tabbar.showInnerScroll();
tabbar.setHrefMode("ajax-html");
tabbar.setContentHTML("a1", '<?php echo addslashes(str_replace(" ", " ", ereg_replace("/\n\r|\r\n|\n|\r|\xe2|\x88|\x9e/", " ", the_content())))?>');
tabbar.setContentHTML("a2", '<?php echo addslashes(str_replace(" ", " ", ereg_replace("/\n\r|\r\n|\n|\r|\xe2|\x88|\x9e/", " ", get_post_meta($post->ID, "transcript", true)))); ?>');
tabbar.setContentHTML("a3", '<?php echo addslashes(str_replace(" ", " ", ereg_replace("/\n\r|\r\n|\n|\r|\xe2|\x88|\x9e/", " ", the_excerpt())))?>');
tabbar.setTabActive("a2");
}
</script>
</div>
This results (viewing page source) in nothing being shown for the Content in the a1 tab and a CRLF immediately following the
tag in the a3 tab: <div id="a_tabbar" style="width:500px; height:450px;"/>
<script>
var tabbar;
function doOnLoad() {
tabbar = new dhtmlXTabBar("a_tabbar", "top");
tabbar.setSkin('dhx_skyblue');
tabbar.setImagePath("http://127.0.0.1/mublogs/wp-content/themes/qute/js/imgs/");
tabbar.addTab("a1", "Content", "100px");
tabbar.addTab("a2", "Transcript", "100px");
tabbar.addTab("a3", "Excerpt", "100px");
tabbar.showInnerScroll();
tabbar.setHrefMode("ajax-html");
tabbar.setContentHTML("a1", '');
tabbar.setContentHTML("a2", 'This is the recorded interview with <b>Prof Little</b>. Any text in here <will> have to be & raw html as there is no WYSIWYG editor\'s associated with with custom field text boxes.');
tabbar.setContentHTML("a3", '<p>He is a Barrister at Law and holds a Bachelor of Laws, Master of Laws and a PhD.</p>
');
tabbar.setTabActive(“a2”);
}
</script>
</div>
After capturing the page source, using an editor to remove the CRLF and saving the page as html results in the expected output when viewed in the browser.
As for the missing the_content - this may be my lack of understanding of how this WordPress function works.