Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
deep linking to a Frame site
Old 08-27-2007, 03:51 PM deep linking to a Frame site
Novice Talker

Posts: 5
Name: dave
Trades: 0
Is it possible to deep link into a framed HTML page from another website? (we own both websites)

I would like to link not to just the content in one of the frames of the target site, but to the entire frameset with the navigation and header, with the content, just as if they navigated to the content directly from the target websites home page.

thanks!
dvarga is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-27-2007, 09:53 PM Re: deep linking to a Frame site
ChipJohns's Avatar
I don't know! Do you?

Posts: 488
Name: Chip Johns
Location: Savannah Georgia
Trades: 0
Yes you can...
ChipJohns is offline
Reply With Quote
View Public Profile Visit ChipJohns's homepage!
 
Old 08-28-2007, 02:06 PM Re: deep linking to a Frame site
Novice Talker

Posts: 5
Name: dave
Trades: 0
How would I generate that link?

Thanks...

Dave
dvarga is offline
Reply With Quote
View Public Profile
 
Old 08-29-2007, 07:38 AM Re: deep linking to a Frame site
ChipJohns's Avatar
I don't know! Do you?

Posts: 488
Name: Chip Johns
Location: Savannah Georgia
Trades: 0
DVARGA,

The link would be just like any other link!

You could find the url of any page in a frameset, or you can link to an entire frameset.

The thing is when they click on that link, they will be leaving your web site and going to the web site you are linking...

Code:
 
<a href="nameofpage.htm">Other Web Site Page</a>
ChipJohns is offline
Reply With Quote
View Public Profile Visit ChipJohns's homepage!
 
Old 08-29-2007, 12:17 PM Re: deep linking to a Frame site
Novice Talker

Posts: 5
Name: dave
Trades: 0
This is more complex than a simple link.

Let's say I am on a normal frameless website and need to link to a framed website. The frameset on this framed site consists of two frames, top with header and navigation, bottom frame with content.

Yes, I can link to a specific content page in a frameset, and not pickup the entire frameset. Like what you just showed.

Alternatively, I can also call up the entire frameset by rroviding the home page of the framed site.

But how to pull up the entire frameset, with the specific deep link content page that I want along with the other frame page on the top?

So ultimately, is there some complex URL that I would have a user click on to do this?
dvarga is offline
Reply With Quote
View Public Profile
 
Old 08-29-2007, 08:47 PM Re: deep linking to a Frame site
ChipJohns's Avatar
I don't know! Do you?

Posts: 488
Name: Chip Johns
Location: Savannah Georgia
Trades: 0
The magic will need to happen on the site with the frameset.

I'm not an expert with javascript but modify the script below and put on the pages that need to be forced into the frameset. You said that you have access to the site with the frames, correct?

If you build a framed site all the pages should have a force on them anyway so that when the search engines find your pages and people go to them, they will be forced into the frameset and be view as they should be.

Try this code. (edit as needed)

<body onload="checkHost()">

<script language="JavaScript">
function checkHost() {
if (self.location.hostname != top.location.hostname)
top.location.href = "http://www.yoursite/frameset.html"
}
</script>
ChipJohns is offline
Reply With Quote
View Public Profile Visit ChipJohns's homepage!
 
Old 08-30-2007, 02:59 PM Re: deep linking to a Frame site
dansgalaxy's Avatar
Defies a Status

Posts: 6,521
Name: Dan
Location: Swindon
Trades: 0
Ok not sure about what chip johns said, but u could do this with PHP

with somelike like

PHP Code:
$forced $_POST['forced_page'];
if(!empty(
$forced))
{
frame src="$forced";
}
else 
{
frame src="homepage_for_frane_site"

so if the url is page.php?forced_page=contact.html it should show contact.html in the content frame is its just page.php it will show what ever frame it would usually.

Hope this helps,
If you would like me to develope the abve exmple to work with your site, i would be happy to offer my services

Dan
Talkupation Apprieciated
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Old 09-01-2007, 02:50 PM Re: deep linking to a Frame site
Novice Talker

Posts: 5
Name: dave
Trades: 0
Thanks ChipJohns for your help. I might be a little slow in understanding as I do not understand javascript, at all. Bear with me.

The situation is, I am on a normal website and have to provide a link to another page, to a framed (2 framed) site that already exists. The page I want to land on is a deep page, one normally arrived at from navigating from the home page of the framed site. But I dont want to navigate to deep in the framed site, I want to go right to it.

The framed site is called http://www.example.com and the `home page' is: index.htm, which calls upon top and bottom files called top.htm and bottom.htm. Those two pages together are the home page.

But I want to deep link into this site so that I see the entire frameset consisting of top.htm and deep.htm.

How do I utilize the javascript that you gave me to do this? Can you fill in the htm files on there...? Also, where would this code go? It does not look like it is the link that gets me to the deep page on the framed site.

Thanks...
dvarga is offline
Reply With Quote
View Public Profile
 
Old 09-01-2007, 03:19 PM Re: deep linking to a Frame site
dansgalaxy's Avatar
Defies a Status

Posts: 6,521
Name: Dan
Location: Swindon
Trades: 0
please bare in mind if you do this with javascript and onre of the (increasing amount) of users who have it disabled with be erm screwd and this will not work.

which is why i suggested PHP as you would only have to edit one page and it has no rffrct on the others
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Reply     « Reply to deep linking to a Frame site
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.28926 seconds with 12 queries