User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 391,952 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,813 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 2133 | Replies: 7
Reply
Join Date: Aug 2005
Posts: 100
Reputation: martinkorner is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
martinkorner's Avatar
martinkorner martinkorner is offline Offline
Junior Poster

Help Link to page in page

  #1  
Oct 14th, 2005
My home page is made up of two seperate web pages - one contents and one for the actual website. When a link in the contents is clicked it loads in the main web site page.

When an external website is linked to my site it has to go to the home page so that the contents is also there.
Is it possible to have an external link which opens another page with the contents?

Hope I've explained this clearly enough :o

Martin
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Posts: 1,589
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 34
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Link to page in page

  #2  
Oct 14th, 2005
Nope, not nearly clearly enough. It's ok, in this particular section of Daniweb, to post links to the site in question. Show us your page(s). Then explain what you want the external link to do.

What I think you're trying to do is:

mainpage

contents

Those are two separate pages. If I really like something on your contents page, and make a link to it, you really want that link to be redirected to mainpage, but to "load" whatever it was on contents that the link is to. Right?

It would help so much to see your site, please give is a link.
Reply With Quote  
Join Date: Aug 2005
Posts: 100
Reputation: martinkorner is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
martinkorner's Avatar
martinkorner martinkorner is offline Offline
Junior Poster

Solution Re: Link to page in page

  #3  
Oct 15th, 2005
Sorry, I'll try again...

My site loads up with index.html

index.html is made up of 2 seperate pages - contents.html and home.html

when someone clicks a link (e.g. Guest Book) in contents.html
Guest_book.html will load up where home.html was.

So the it is always using index.html which has the code :

<frameset cols="120,*" border=0>
<frame src="contents.html">
<frame src="home.html" name="showframe">
</frameset>

Therefore, a link to index.html will always load the home page (with contents).

I want to have a link from an external site which will load contents.html and Guest_book.html in the index.

without having to write a new index.html e.g. index_Guest_book.html which would use...

<frameset cols="120,*" border=0>
<frame src="contents.html">
<frame src="index_Guest_book.html" name="showframe">
</frameset>

If you still don't get me I'll just give you a link to my website!

Martin
Reply With Quote  
Join Date: Oct 2005
Posts: 4
Reputation: Mike Empuria is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Mike Empuria Mike Empuria is offline Offline
Newbie Poster

Re: Link to page in page

  #4  
Oct 16th, 2005
Ah, the joys of frames. I think that the best way to do what you want would be to set up a new page that the external site will link to; let's call it exguest.html (external guestbook). Then use the code from your index page and alter it accordingly:

exguest.html:

[HTML]<frameset cols="120,*" border=0>
<frame src="contents.html">
<frame src="Guest_book.html" name="showframe">
</frameset>[/HTML]

Hope this helps

Mike
Reply With Quote  
Join Date: Jan 2005
Location: Sheffield, UK
Posts: 294
Reputation: zippee is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 6
zippee's Avatar
zippee zippee is offline Offline
Posting Whiz in Training

Re: Link to page in page

  #5  
Oct 16th, 2005
I not always recommend frame site for 2 main reasons:
1. not entirely search engine friendly
2. there's chance visitors find your framed page (content) rather than the index page.

I would suggest you use javascript to redirect your visitors to index.html when they accidentally come to content page directly (no frame).

Ah... answer to your question is NO, unless you set up another page to do the job like Mike suggested. Alternatively, if you know server side language, then use asp or php to create dynamic site.
Ecommerce-Web-Store.com Building Your e-Business.
Reply With Quote  
Join Date: Aug 2005
Posts: 100
Reputation: martinkorner is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
martinkorner's Avatar
martinkorner martinkorner is offline Offline
Junior Poster

Re: Link to page in page

  #6  
Oct 16th, 2005
To Mike:

Yeah, I thought I'd have to do that.

It's Just a bit annoying if I have to do that for any page that has an external link to it.

Thanks Anyway,
Martin
Reply With Quote  
Join Date: Aug 2005
Posts: 100
Reputation: martinkorner is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
martinkorner's Avatar
martinkorner martinkorner is offline Offline
Junior Poster

Help Re: Link to page in page

  #7  
Oct 16th, 2005
To Zipee:

How would I use Javascript to redirect someone from the contents if it was opened without a frame?

Martin
Reply With Quote  
Join Date: Jan 2005
Location: Sheffield, UK
Posts: 294
Reputation: zippee is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 6
zippee's Avatar
zippee zippee is offline Offline
Posting Whiz in Training

Re: Link to page in page

  #8  
Oct 16th, 2005
Originally Posted by martinkorner
To Zipee:

How would I use Javascript to redirect someone from the contents if it was opened without a frame?

Martin
see http://www.digitalroom.net/index2.html or do you google search!
Ecommerce-Web-Store.com Building Your e-Business.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb HTML and CSS Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 9:02 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC