I'm having a problem with .load's function.
When I'm loading a file dynamically with jQuery the file being inserted into my PHP file isn't effected by my file called master.php. Master.php has all the functions that are necessary to process everything within that file that is being loaded dynamically in jQuery's .load function.
So, is there a way to have it loaded? I can't just have master.php in that file, because my file that's being loaded with the .load function is already in same file that it's being called again with .load.
Original file code:
<?php
include 'include/master.php';
?>
<div id='loadingDock'>
<?php
include 'include/sequence.php';
?>
</div>
But then after I dynamically add something into the database, I want to load sequence.php again to show the results.
$(document).ready(function(){
$("#hoverElement").click(function(){
$("#loadingDock").load('include/sequence.php');
});
});
Any thoughts?