From a performance point of view, is this
better than this?Code:<script> $(document).ready(function() { $('#some_div').load('some_file.html') }); </script>
Thanks,Code:<script> function include_using_iframe_and_jquery(url,id) { $('html').append('<iframe src="'+ url +'" name="framename" style="position:absolute; width:0px; height:0px; left:-10000px" onload="$("#'+ id +'").empty(); $("#'+ id +'").append(frames[\'framename\'].document.documentElement.innerHTML)"></iframe>') } window.onload=include_using_iframe_and_jquery('some_file.html','some_div') </script>
Arie.



Reply With Quote

Bookmarks