New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModuleswindow.opener undefined in IE when in DNN - Facebook Login Modulewindow.opener undefined in IE when in DNN - Facebook Login Module
Previous
 
Next
New Post
4/4/2011 1:19 AM
 
I've been working on a facebook login module - I don't need it to fit in with the DNN login capabilities, I just want people to be able to authenticate into my DNN site - however, in IE7 I get an undefined window.opener when I run this in DNN.  Outside of DNN both firefox and IE7 work fine.  It doesn't help that I'm not a javascript guru...but perhaps you are?

// 1. base script on my DNN page (I put this in the page header)
window.loginDialog = null;

function ReloadMe() {
    window.document.location.href = 'default.aspx';
}

function fbLogin(uri) {
    window.loginDialog = window.open(uri, 'loginDialog', 'height=320,width=480,location=no,menubar=no,toolbar=no,status=yes');
}



window.LoginComplete = function () {
    window.LoginComplete');
    if (window.loginDialog != null) {
        window.loginDialog.close();
    }
    ReloadMe();
};

// 2. When the user presses a fb connect button I inject the following script in the main page
fbLogin('url goes here');

// 3. In popup page this script is injected after the fb login OAUTH 2.0 sequence including redirects...
if (window.opener) {
            window.opener.LoginComplete();
        } else {
            roblem with window.opener');
            window);
            window.opener);  <<<< this is undefined when run within DNN
            self.close();
        }

Any clue?
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModuleswindow.opener undefined in IE when in DNN - Facebook Login Modulewindow.opener undefined in IE when in DNN - Facebook Login Module


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.