Hi, on my site I am using XMLHttpRequest (or JQuery load() function) to add an external html file to multiple pages. It works fine, but the external content is not parsed by google. For example, the content of the “Pin Headers” section on the following page is obtained from an external page via the load() function:
[url]http://modtronix.com/in485p-tbp.html
If you google “in485P-TBP”, and have a look at the cached result, you see the “Pin Headers” section is empty.
The load() function only adds the content of the external page to the “Pin Headers” section after about 1 second or so. So, seems like Google does not wait that long before it parses the page. Is there a way to get Google to include the content of the external page I am loading?
The code on my page is:
[CODE]
<script type=”text/javascript”>// <![CDATA[
var req = new XMLHttpRequest();
req.open(“GET”, “myfiles/gc.php?seo=csup-imod-gen&id=imod-hdrs”, false);
req.send(null);
document.write(req.responseText);
// ]]></script>
And code using JQuery:
[CODE]
<div id=”imod-hdrs”> </div>
<script type=”text/javascript”>// <![CDATA[
$(“#imod-hdrs”).load(‘myfiles/gc.php?seo=csup-imod-gen&id=imod-hdrs’);
// ]]></script>