• Welcome to the new Mac-Forums. See News and Community Announcements for more details.

Back button overlay iframe's content

any


Joined
Feb 14, 2020
Messages
5
Reaction score
0
Points
1
Hello,

We have a problem with back button, it doesn't seem to work well, iframes content are not always created correctly.
How can I fix it?
Pls help!!!

Safari Version 13.0.5 (13608.5.12).

Thanks!
 
Last edited:
M

MBAmtloin

Guest
Are you trying to use one or install one?
iframes are made in HTML code, every web browser has a different setting or CSS, a thing a web designer would do.
i guess you can check the develop section on your mac or you need to allow content in "settings for this website".
 

any


Joined
Feb 14, 2020
Messages
5
Reaction score
0
Points
1
On page, we have installed <iframe /> tags, for example:
<iframe src="iframe1.html">content iframe1</iframe>
<iframe src="iframe2.html">content iframe2</iframe>


After some action on page, or reload page, on click back button we have:
<iframe src="iframe1.html">content iframe2</iframe>
<iframe src="iframe2.html">content iframe1</iframe>
 
M

MBAmtloin

Guest
On page, we have installed <iframe /> tags, for example:
<iframe src="iframe1.html">content iframe1</iframe>
<iframe src="iframe2.html">content iframe2</iframe>


After some action on page, or reload page, on click back button we have:
<iframe src="iframe1.html">content iframe2</iframe>
<iframe src="iframe2.html">content iframe1</iframe>
we need more specifics, are we building this in web design program like dreamweaver or trying to view an iframe in safari?
 

any


Joined
Feb 14, 2020
Messages
5
Reaction score
0
Points
1
So, we have a web site, on our web site we have <iframe /> tags, for example:

Screen Shot 2020-02-14 at 2.png

Sometimes, when we click back button in safari, content of our iframe move in the other iframe.

What kind of specifics do you need more?

Thanks in advance!
 

pigoo3

Well-known member
Staff member
Admin
Joined
May 20, 2008
Messages
41,990
Reaction score
671
Points
113
Location
U.S.
Your Mac's Specs
2011 17" MBP 2.2ghz, 16gig ram, OS 10.11.6
So, we have a web site, on our web site we have <iframe /> tags, for example:
Hello. Looks like you would rather not share your websites URL (which is totally ok). Maybe (if possible) if you could share a screenshot of what's going on...maybe that could help with solutions.:)

- Nick
 
M

MBAmtloin

Guest
i think your question s more html than mac.
therefore i will pass and hopefully someone else answer your question.
i know how to create iframe pages in dreamweaver, but this was years ago.
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
12,664
Reaction score
305
Points
83
Location
MA
Your Mac's Specs
2018 Mac-Mini macOS Catalina 10.15.5, 32 GB
Thread moved to the correct sub-forum.

The iframe should be loading the content from the SRC file, and there should be no reason you should be getting that crossed on a page reload or going back. The parent page will load and all the iframes should reload their data appropriately.

Does this crosstalk issue exist in other browsers (Chrome, Firefox, etc.) or is it purely a Safari thing?

I tested the following in Safari and Brave and had no issues. I went to page 2 and hit the Back button to go back.

Boil your code down to the basics to ensure that it is working and then work up from there.

Index page
Code:
<HTML>
<HEAD>
<TITLE>Frame Test</TITLE>
</HEAD>
<BODY>
<H1>This is the parent page</H1>
<IFRAME SRC="frame1.html"></IFRAME>
<BR />
<IFRAME SRC="frame2.html"></IFRAME>
<BR />
<A HREF="page2.html">Page 2</A>
</BODY>
</HTML>
Frame 1
Code:
<HTML>
<HEAD>
<TITLE>Frame 1</TITLE>
</HEAD>
<BODY>
<H2>This is frame 1</H2>
</BODY>
</HTML>
Frame 2
Code:
<HTML>
<HEAD>
<TITLE>Frame 2</TITLE>
</HEAD>
<BODY>
<H2>This is frame 2</H2>
</BODY>
</HTML>
Page 2
Code:
<HTML><HEAD>
<TITLE>Page 2</TITLE>
</HEAD>
<BODY>
<H2>This is page 2</H2>
</BODY>
</HTML>
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
12,664
Reaction score
305
Points
83
Location
MA
Your Mac's Specs
2018 Mac-Mini macOS Catalina 10.15.5, 32 GB
Does my code work for you on Safari? I'm on Catalina, Safari 13.0.5.
 

any


Joined
Feb 14, 2020
Messages
5
Reaction score
0
Points
1
For more information I attache files

before:

before.jpg

after:

after.jpg

In our logic iframe A must downloads the first and iframe B must downloads after iframe A. But in safari sometimes iframe B is first but with content from iframe A.
 
Top