[jQuery] jQuery + document.write + ajax

[jQuery] jQuery + document.write + ajax


Hi Folks,
by clicking on a link I want to reload a skyscraper banner. The code
for the skyscraper banner is in a file_with_the_banner.html I want to
include this file with jquery ajax.
I have this code in the index.html
<script type="text/javascript">
    $(function() {
     $('a').click(function() {
     $('<div id="info" />').load(file_with_the_banner.html
#bannercode, function() {
        $(this).hide()
            .appendTo('#skyscraper)
            .slideDown(1000);
         });
            return false;
        })
    });
</script>
...</head></bod>.....
<div id="skyscraper"></div>
<a>Load new Banner</a>
/// END INDEX.HTML
and the code in the file_with_the_banner.html
<div id="bannercode">
<script type="text/javascript">
<!--
document.write('<scr'+'ipt language="javascript1.1"
src="......URL....;loc=100;target=_blank;grp='+var1+';misc='+new Date
().getTime()+'"></scri'+'pt>');
//-->
</script></div>
The problem is, that the new banner doesn't appear. When I open the
file_with_the_banner.html directly in the browser, the banner appears.
I think that jquery has a problem with document.write.
Does anyone know how to solve this issue??