Hey all, is there anyway to modify this code for me to just show a DIV's section instead of loading each page with an external file?
<script type="text/javascript">
$(document).ready(function(){
$('.ezjax').ezjax({
container: '#ezjax_content',
initial: 'modules/one.html',
effect: 'slide',
easing: 'easeOutBounce',
bind: 'a'
});
});
</script>
<a class="ezjax" href="modules/one.html">Page One</a> |
<a class="ezjax" href="modules/two.html">Page Two</a> |
<a class="ezjax" href="modules/three.html">Page Three</a>
<div id="ezjax_content">
<!-- THIS IS THE CONTAINER WHERE THE CONTENT WILL BE LOADED -->
</div>
This is what i would like to do:
<a class="ezjax" href="page1">Page One</a> |
<a class="ezjax" href="page2">Page Two</a> |
<a class="ezjax" href="page3">Page Three</a>
<div id="ezjax_content">
<div id="page1">
<!-- THIS IS THE CONTAINER WHERE THE CONTENT WILL BE LOADED -->
</div>
<div id="page2">
<!-- THIS IS THE CONTAINER WHERE THE CONTENT WILL BE LOADED -->
</div>
<div id="page3">
<!-- THIS IS THE CONTAINER WHERE THE CONTENT WILL BE LOADED -->
</div>
</div>
Any help would be awesome as always :o)
David