its like the head isn't clearing the .js
files when the div gets
repopulated.
I hope
you are not loading some HTML that contains
<head>
(or
<body>)
into
your document! A document should have but one
<head>
and one
<body>
.
(And if it has more, call the National Enquirer or The Sun about the scoop...)
That
will create a mess, and every browser will deal with that mess in a
different way.
When
you make an AJAX request and your server returns some HTML,
normally, you have the server send an HTML fragment, not a complete document.
If
it sends a complete document, then you should remove
<head>
.
(Actually, just use the content inside of the
<body>
tag.) That's what - for example - jQuery Mobile does when it
loads one of it's "pages" using Ajax. Better,
though, to not have your server send unnecessary bits.
If
you load some HTML that has some scripts in it, you need to think
carefully about what will happen when those scripts are run!