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".
 
OP
A

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?
 
OP
A

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
44,210
Reaction score
1,418
Points
113
Location
U.S.
Your Mac's Specs
2017 15" MBP, 16gig ram, 1TB SSD, OS 10.15
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
15,745
Reaction score
2,071
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
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
15,745
Reaction score
2,071
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
Does my code work for you on Safari? I'm on Catalina, Safari 13.0.5.
 
OP
A

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.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top