I want to update divs by html pages.I have used Ajax.Updater and jquery .load() .These are good.Can anyone suggest someother methods?? I want to show html pages in some div.Thanks in advance.
4 Answers
For me the best way to dynamically generated content is via Jquery. For your problem, so I think the following code:
$(document).ready(function() {
$('#ContentPage').load('MyPage.html');
}
1 Comment
SREE ANI
Yes,But it will load from cache.SO changes wont be easily available
I recommend you always using $.ajax function over $.load for that purposes. The reason is that $.load is using cache, which cannot be disabled with parameters while defining it - the only way to disable caching for $.load is to disable it globally for all ajax calls.
After all, $.load is just a wrapper for $.ajax
I am not sure about ajax updater vs ajax, will check and update answer...
Ajax.Updaterandjquery.load()not enough for you ?