Coldfusion or JS Referrer NOT recognized from Flash AS

Posted on 2004-10-29
Last Modified: 2013-12-16
Trying to display referrer from AS code, but it is not recognized by either JS or Coldfusion.  The Flash AS button is:

_root.myButton_btn.onPress = function() {
      getURL("javascript:var mypopup ='','mySite','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=780,height=425');");

The web page that that pops up does NOT recognize the referrer.  The code to output referrer that has been used is:


<script language="Javascript">
if (document.referrer&&document.referrer!=""){
document.write('Referrer URL: '+document.referrer+'<BR>');
else{document.write('NO referrer');}

Any ideas why this may be occurring and is there a solution?


Question by:splendorx
    LVL 1

    Author Comment

    FYI - the referrer is recognized by Netscape and Firefox.  However, it is NOT recognized by IE.
    LVL 27

    Accepted Solution

    It is a known bug. This come from a flashkit thread on the argument:

    "The reason you don't get the HTTP_REFERER environment variable is because it is not filled in by the Flash Player ActiveX Plug-in for IE.
    The feature is disabled due to a conflict between the Flash Player ActiveX plug-in and IE4 - which MacroMedia are commited to supporting.
    The plug-in and browser crashed when attempting to fill out this variable and thus MM disabled the feature in its IE plug-in."
    LVL 1

    Author Comment

    Are there any documented alternatives for getting the http_referer?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
    I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
    The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
    The goal of the tutorial is to teach the user how to how to record live broadcast.

    846 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now