<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>Could you maybe insert a new XMLHttpRequest object in a script element into the page? That way you would have access to the Referrer.

e.g.

&lt;pre&gt;var xScript = document.createElement('script');
xScript.type = 'text/javascrpt';
xScript.innerHTML = &quot;function getXmlHttpRequest(){var httpRequest=null;httpRequest=new XMLHttpRequest();return httpRequest;}&quot;;

document.getElementsByTagName('head')[0].appendChild(xScript);

var xhr = unsafeWindow.getXmlHttpRequest();
xhr.onreadystatechange = function() { 

&amp;nbsp;if (request.readyState == 4 &amp;&amp; request.status == 200) {

&amp;nbsp;&amp;nbsp;alert(xhr.getResponseHeader( 'Referrer' )); 

&amp;nbsp;}

};
xhr.open(&quot;GET&quot;, url, true);
xhr.send(null);</body>
  <body-html>&lt;p&gt;Could you maybe insert a new XMLHttpRequest object in a script element into the page? That way you would have access to the Referrer.&lt;/p&gt;

&lt;p&gt;e.g.&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;var xScript = document.createElement('script');
xScript.type = 'text/javascrpt';
xScript.innerHTML = &quot;function getXmlHttpRequest(){var httpRequest=null;httpRequest=new XMLHttpRequest();return httpRequest;}&quot;;

document.getElementsByTagName('head')[0].appendChild(xScript);

var xhr = unsafeWindow.getXmlHttpRequest();
xhr.onreadystatechange = function() { 

&amp;nbsp;if (request.readyState == 4 &amp;amp;&amp;amp; request.status == 200) {

&amp;nbsp;&amp;nbsp;alert(xhr.getResponseHeader( 'Referrer' )); 

&amp;nbsp;}

};
xhr.open(&quot;GET&quot;, url, true);
xhr.send(null);&lt;/pre&gt;&lt;/p&gt;</body-html>
  <created-at type="datetime">2007-12-07T20:41:51Z</created-at>
  <forumable-id type="integer">1</forumable-id>
  <forumable-type>Forum</forumable-type>
  <id type="integer">5360</id>
  <topic-id type="integer">1302</topic-id>
  <updated-at type="datetime">2007-12-07T20:41:51Z</updated-at>
  <user-agent nil="true"></user-agent>
  <user-id type="integer">26957</user-id>
</post>
