Hi--

I am using AJAX to load a sidebar into my page:

  $('#side').load('side.html')

It loads fine except for the the Google Ad code that is in side.html:

  <div style="margin-left: 3px;">
  <script type="text/javascript"><!--
  google_ad_client = "pub-XXXXXXXXXXXXXXXX";
  google_ad_width = 160;
  google_ad_height = 600;
  google_ad_format = "160x600_as";
  google_ad_type = "text_image";
  //2007-10-01: xanadu
  google_ad_channel = "9867202388";
  google_color_border = "336699";
  google_color_bg = "FFFFFF";
  google_color_link = "0000FF";
  google_color_text = "000000";
  google_color_url = "008000";
  //-->
  </script>
  <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js";>
  </script>
  </div>

Why doesn't this execute when loaded by the ajax load method? Is there
a way for me to fix it?

Thanks,
T.

Reply via email to