Topic-icon Open window from iframe target parent

Active Subscriptions:

None
10 years 10 months ago #33553 by plezi69
I am looking to open this link below in target_parent but I don't know how to do that with this code.. the component opens in the iframe instead

<a href="javascript:void(0)" onclick="jfbc.login.login_custom();">
The topic has been locked.
Support Specialist
10 years 10 months ago #33566 by alzander
You'll need to edit the /components/com_jfbconnect/includes/jfbconnect.js file. Search for "self.location" and you'll find a line like below:
self.location=jfbc.base+'index.php?option=com_jfbconnect&task=loginFacebookUser.......
Update that self.location to top.location and that should work on the main window, not just the inner iframe.

Let me know how that goes, but if you need anything else, we'll be here.

Thanks,
Alex
The topic has been locked.