Reputation: 767
So within a website is a div that contains another part of the website being loaded when a tab is clicked.
So let's say clicking a tab loads up a file called "hive/index.php". When someone clicks on an option in an autocomplete, I only want to reload hive/index.php and still have the rest of the page, not the entire webpage. How do I do that?
Upvotes: 1
Views: 14282
Reputation: 3034
If using jQuery,
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
$('#divID').load('hive/index.php'); //<- Use this on any event in which you want to refresh the content
</script>
Upvotes: 3