Javascript reload woes

Soldato
Joined
1 Sep 2005
Posts
10,001
Location
Scottish Highlands
As per this thread;
http://forums.overclockers.co.uk/showthread.php?t=17791273

Im trying to get a certain div in my html page to reload when a link is clicked. Ive managed to get the whole page to reload on click, but im having problems getting just one div to. Any help or advice would be greatly appreciated

At the moment im trying something like;

Code:
<li><a href="javascript:ajaxpage('Home.html', 'contentarea');reloadBlock('block1')">HomeX</a></li>

Code:
<script type="text/javascript">  			
  	function reloadBlock(blockId)
  	{
    	document.getElementById(blockId).reload();
  	}
</script>

But its still not working. Can you even use .reload on anything other that .location? If not, is there an alternative I can use with elements?
 
Back
Top Bottom