Type: String
Returns the URL of the referring page, if any.
Note: You must call the GetExtPropertiesEx method before checking the value of this property. This property requires either the Professional or Enterprise Edition of BrowserHawk.
Tip: See the extproperties.asp example located in your BrowserHawk directory for detailed information and examples on using this property.
Tip: When calling the GetExtPropertiesEx method you will lose the referrer information normally available with Request("HTTP_REFERRER"). Therefore if you need to access the referrer information you should do so through this property instead of the Request object.
Example:
<% set bhObj = Server.CreateObject("cyScape.browserObj")
bhObj.SetExtProperties "TimeZoneDiff, Referrer"
bhObj.GetExtPropertiesEx
%>
<html>
<%
response.write bhObj.TimeZoneDiff & "<br>"
response.write "Referring page is: "
ref = bhObj.Referrer
if ref = "" then
response.write "<none>"
else
response.write ref
end if %>
</html>
Special notes for this property:
When calling the GetExtPropertiesEx method to check various settings, the referrer information is not longer available to your page in the Request object. Therefore if you need the referrer information in your script you should get it from this Referrer property.
Unlike most other properties used by GetExtPropertiesEx, the referrer property is set regardless of whether the user's JavaScript is disabled.
Note this property is only set when there is a referrer and you called the SetExtProperties method to add the Referrer as a property to check.
This field automatically filters out and removes any BrowserHawk reserved token names and values that may otherwise appear in the referrer. For example, bhcp=1 or bhqs=1.
See Also: