I loaded a content into a div using php get_file_contents,now i want to refresh it using ajax but i can't figure how to do it.Sample code:\[code\]<script>function refreshmydiv(){...}</script><div id="mydiv"> <? echo nl2br(htmlspecialchars($myfile)); ?> <div><a href="http://stackoverflow.com/questions/2073784/#" onclick="refreshmydiv();">Refresh My Div</a>\[/code\]