Is it possible to have the content for a jquery-ui tab-pane be another html document?
<div id='tabs' class="ui-tabs">
<ul>
<li><a href="Text.html" ><span>Text</span>/a></li>
<li><a href="Notes.html" ><span>Notes</span></a></li>
<li><a href="Glossary.html" >Glossary</span></a></li>
</ul>
</div>
I think my page is set up as in the documentation here: http://jqueryui.com/demos/tabs/#Ajax_mode
$(document).ready(function()
{
$("#tabs").tabs();
});
but my pages do not display. In the debugger I see that the external document has indeed been loaded (and there is a loading… message in the tab briefly) but the content is not being rendered. Is there additional javascripting required to get the external pages to be rendered?
EDIT: updated working code. Previous had some typo’s.
For new html document you need to load them in an iframe. You can even use if’s and change the source of just one frame (but this way you can see changes in previous frame is you switch tabs)
EDIT:
Added code on jsfiddle