Post by Joe1234 » Sat Mar 25, 2023 12:50 am

Hopefully this is a basic code. I have an iframe, how do I redirect the target of a login to the parent...main browser? So instead of $this->response->redirect($this->url->link('account/account', '', true)); opening in the iframe, I need it opened in the main browser.

v3.0.3.9 php 8.1
I'm here for a reason, if your response is contact a/the developer, just don't reply.


Active Member

Posts

Joined
Sat Jan 01, 2022 5:47 am

Post by halfhope » Sat Mar 25, 2023 2:36 am

Hi!

I think you can send js message to parent window from iframe (or opener, of this is popup window) and make redirect.

window.parent only works with iframes and window.opener works with separate windows.

My extensions in marketplace. [ security | flexibility | speedup ]


User avatar
Active Member

Posts

Joined
Tue Dec 10, 2013 9:44 pm
Location - San Diego

Post by paulfeakins » Mon Mar 27, 2023 6:49 pm

Joe1234 wrote:
Sat Mar 25, 2023 12:50 am
Hopefully this is a basic code. I have an iframe, how do I redirect the target of a login to the parent...main browser? So instead of $this->response->redirect($this->url->link('account/account', '', true)); opening in the iframe, I need it opened in the main browser.
Why don't you tell us a bit more about what you're trying to do and why you're using frames in the first place because it's sounding a little hacky ...

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by Joe1234 » Thu Mar 30, 2023 9:04 pm

@halfhope, I am not great with jacascript, anything you can point me to to get started?

@paul I'm using oneall social login but if I'm on the popup login window I'm logged into the popup/iframe window instead of the main window.

v3.0.3.9 php 8.1
I'm here for a reason, if your response is contact a/the developer, just don't reply.


Active Member

Posts

Joined
Sat Jan 01, 2022 5:47 am

Post by paulfeakins » Thu Mar 30, 2023 9:37 pm

Joe1234 wrote:
Thu Mar 30, 2023 9:04 pm
@paul I'm using oneall social login but if I'm on the popup login window I'm logged into the popup/iframe window instead of the main window.
So it's a bug with that extension?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by Joe1234 » Sun Apr 02, 2023 4:16 am

I don't know if it's a bug or not. Either way, I'm looking to resolve the issue quickly...the developer seems to be relatively responsive, but it's taking too long.

v3.0.3.9 php 8.1
I'm here for a reason, if your response is contact a/the developer, just don't reply.


Active Member

Posts

Joined
Sat Jan 01, 2022 5:47 am

Post by Johnathan » Sun Apr 02, 2023 10:04 pm

Look into the postMessage() function:

https://developer.mozilla.org/en-US/doc ... ostMessage

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by paulfeakins » Mon Apr 03, 2023 6:01 pm

Joe1234 wrote:
Sun Apr 02, 2023 4:16 am
I don't know if it's a bug or not. Either way, I'm looking to resolve the issue quickly...the developer seems to be relatively responsive, but it's taking too long.
How long is too long?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by Joe1234 » Tue Apr 04, 2023 10:36 pm

Thanks, I'll look into that.

v3.0.3.9 php 8.1
I'm here for a reason, if your response is contact a/the developer, just don't reply.


Active Member

Posts

Joined
Sat Jan 01, 2022 5:47 am

Post by by mona » Wed Apr 05, 2023 12:15 pm


DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am
Who is online

Users browsing this forum: Baidu [Spider] and 103 guests