Forum is closed

Open window from iframe target parent

Open window from iframe target parent

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();">

plezi69
useravatar
Offline
63 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Open window from iframe target parent

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:

Code:

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

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23893 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
11542
Total Polls:
0
Total Posts:
48565
Posts today:
8
User Info
 
Total Users:
47554
Newest User:
luifeh
Members Online:
0
Guests Online:
606

Online: 
There are no members online
Social Stream
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program