Forum OpenACS Q&A: deep linking with frames

Collapse
Posted by David Kuczek on
I integrated a subsite of our site (still 3.2.5) within our partner's
frame. The frameset and the main content is on our server while the
left and top navigation are being drawn from our partner's site.

Whever a user gets email-notification via bboard he obviously gets
directed to our subsite without the frame. Any solutions that the
frameset gets wrapped around the subsite whenever a user enters i.e.
sub.foo.com/bboard/q-and-a-fetch-msg.tcl directly?

The frameset shouldn't be wrapped around our regular site i.e.
foo.com/bboard/q-and-a-fetch-msg.tcl though...

Collapse
Posted by Torben Brosten on
Without knowing how ACS3.x code is shared between sub.foo.com and foo.com (or much else for that matter), here's a suggestion to try at your own risk:

rename the sub.foo.com/board/q-and-a-fetch-msg.tcl file to something like: sub.foo.com/board/q-and-a-really-fetch-msg.tcl

create a sub.foo.com/board/q-and-a-fetch-msg.tcl file that returns html something like:

<frameset rows="*" cols="185,*" border="3" framespacing="3"> 

<frame SRC="partners-left-navbar-example.html">
<frame src="http://sub.foo.com/board/q-and-a-really-fetch-msg.tcl">

</frameset>
<noframes>This page uses frames. <a HREF="partners-left-navbar-example.html">
See the rest of the partner site</a>
or go check out 
<a href="sub.foo.com/board/q-and-a-really-fetch-msg.tcl">the message</a>
 you were wanting to see.</noframes>
Collapse
Posted by David Kuczek on
Thanks Torben,

I found the following solution on this page:

http://www.webmasterworld.com/forum21/1205.htm
Collapse
Posted by Torben Brosten on
The javascript method definitely scales better than an extra request to the server.

Is this foo.com site related to your cookie situation with a foo.com site discussed at https://openacs.org/bboard/q-and-a-fetch-msg.tcl?msg_id=0005yk&topic_id=11&topic=OpenACS?

I'm curious if a javascript generated top-frame works with the cookie issue for IE. Please post for doc reasons... as I'm sure that frames and javascript issues will become more popular as ACS does too.

Collapse
Posted by David Kuczek on
Torben,

as long as your frameset is on the same server as the frame that issues the cookie it doesn't seem to be a problem *so far*... Deep linking works great, but I discourage using frames, because beside the many arguments against frames, Mozilla on Linux gets freaky with the "Back - Forward" history!