When I submit a form using Ajax I want to reload the section of the page that has changed, rather than the whole page, and for this I'm using:
$('#body_container').load(a_href);
where a_href is the location of the source file. After this command has run and #body_container is updated, the new content of the div doesn't seem to be able to access the script files included in the header of the original page, even though it is encompassed by this original page. It only works if I put <script type="text/javascript" src="files.js"></script> at the start of the a_href file.
However, I actually have little divs inside #body_container that I'm also changing, so doing it this way I have files.js being included lots of times at different levels. It seems to be causing conflicts.
Is there a way to include files.js once in the document header, then have all divs, regardless of when their content was created, always recognise that this file is there, waiting to be used?
<script>to do this) and updates#managewith this. The problem arises if I were to rapidly click between manage 1 and manage 2, it then seems to flicker indefinitely between the two.