View Full Version : Problems using EE in a frameset???
Cyclist
31st of May 2004 (Mon), 11:55
I have a strange problem using EE in a frameset. First everything looks fine but as soon as I have viewed a photo in the detail view all internal links of the menu of the left frame are opened in a new window instead of inside the frameset. This only occurs after having viewed a photo in detail before that everything is fine and I couldn't figure out the reason. Does anybody have any idea what could be wrong?
photocroatia
31st of May 2004 (Mon), 17:48
Hi,
I found the same issue, the only solution that I could come up with is to run EE in an Iframe, this seems to work well.
<Iframe src="GALLERY/index.php" width="100%" height="100%"marginwidth=0 marginheight=0 hspace=0 vspace=0 border=0 scrolling=yes frameborder=0 align=middle align=absmiddle name="I1"></></Iframe>
I you find a better option please let me know.
Cyclist
1st of June 2004 (Tue), 05:21
So far I couldn't find a solution. I would prefer to use normal frames since they are more widely supported than iframe but if this is the only solution I probably have to use it...
If anybody found a solution or is able using EE in frames it would be great to hear of the solution.
But why does only the detail view causes such a problem? Why not the other pages of EE? I am a bit confused now...
photocroatia
1st of June 2004 (Tue), 05:23
I have the issue at exactly the same point, I don't know why its a problem, I have posted on various sites asking for assistance, nobody could explain why its happening.
I haven't hit problems with Iframes with any browsers.
Pekka
1st of June 2004 (Tue), 05:42
It must have something to do with "onclick" Javascript function which makes each row an active link. I'll take a look of it soon, meanwhile if anyone of you reads JS please check the code for problems and report back, thanks.
photocroatia
3rd of June 2004 (Thu), 19:11
Hi All,
has anybody had a chance to look at it who knows JS.
Thank you!
photocroatia
9th of June 2004 (Wed), 23:07
Any update on this? I would love a resolution on this issue.
Cyclist
19th of June 2004 (Sat), 07:14
Has anybody found a solution meanwhile or is anybody running EE successfully within a frameset?
Cyclist
20th of June 2004 (Sun), 11:06
Pekka are you looking for solution or do we simply have to accept this strange behavior of links within a frameset? I wonder if there ever will be a solution because how it's right now it's unacceptable for me. It causes too much trouble.
Pekka
20th of June 2004 (Sun), 13:36
I did a test frameset and I could not get any link break from EE out of the frameset, except the "easy link" which naturally points out. Detail view JS opened links to correct frame. Here's the code I used, saved as frame.html at EE root.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<!-- frames -->
<frameset cols="19%,*">
<frame name="menu" src="foo.html" marginwidth="10" marginheight="10" scrolling="auto" frameborder="0">
<frame name="ee" src="index.php" marginwidth="10" marginheight="10" scrolling="auto" frameborder="1">
</frameset>
<body>
</body>
</html>
So, in order to solve your problem we must see what is in the "menu frame". Perhaps you have frame name in links there which does not match the name of EE frame? Can you mail me a zip with all the files needed and I can try to first reproduce the problem and then see why it happens.
kiwimichael
21st of June 2004 (Mon), 01:36
Hi, I'm also experiencing this problem, and this may help in tracing the problem.
My home page has 2 frames - one for the content and a smaller frame for the navigation. When I start EE it work's fine - I can also nav to my home page or another page. The problem starts once I have opened an image - after this, trying to use my nav bar to go to another page results in the page being opened in a new window (without frames). Another interesting situation is that when I open EE in a frame and then use the menu bar to go to the forum, I am not automatically logged in.
Pekka, I don't have any time at the moment to email the files, however you can access it (view source) at my website www.michaelcrooymans.com (note - it's very much in development at the moment). Also, this should allow you to reproduce the problem.
Pekka, thanks very much for supplying such a great product and for aal of the time you put into the dev and forum!!
Cheers
Michael
Pekka
21st of June 2004 (Mon), 03:05
Ok, now I got it! Stupid of me I did not see this right away.
Two possible solutions:
EITHER
1. name the frame your EE is in to "ee_photopage".
OR
2. find string
$target = "ee_photopage";
and replace it with your frame name i.e. to
$target = "my_main_frame";
in
lens.php
lens_examples.php
accessory.php
accessory_examples.php
and also change in photo.php (line 1670 or so)
window.name = 'ee_photopage';
to your own EE frame name.
The whole "fixed target name" set by Javascript in photo page is there because when you you open a lens or accessory popup all the thumbnails open back to the original window. I will make the frame name configurable in release version.
Hopefully this will solve the frameset problems.
kiwimichael
21st of June 2004 (Mon), 03:13
Hi Pekka,
Thanks for this - it looks as if this is the solution. I'll try it this evening when I get home and let you know.
Cheers
Michael
kiwimichael
21st of June 2004 (Mon), 10:57
Hi Pekka,
As suspected, the problem is solved - I too feel a bit silly at having overlooked the name of the frame.
Just an aside - I'm wondering why you're eaxmple worked as you named the frame "ee" rather than "ee_photpage" ?
Thanks again,
Michael
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.