| View previous topic :: View next topic |
| Author |
Message |
acupofmilo
Joined: 16 Dec 2008
Posts: 4
|
| Posted: Tue Dec 16, 2008 5:58 am Frame Hyperlinking Problems |
|
|
Hi everybody...freshly registered...and I hope one of the gurus could help me out here.
I had to design a VERY VERY basic "website" for a module I'm covering, and on one of the pages, i decided to use frames.
Each "page" has to have clickable links to other areas of the website, and as shown in the attached pictures, ive put these links in the header frame.
Now, the problem lies here. Whenever i click on one of the links, for example "PAYMENT", only the area in that frame gets hyperlinked to the payment page.
Is there any way to get the ENTIRE page to change to the "PAYMENT" page?
(SHOWS THE LINKS, BEFORE CLICKING)
(AFTER CLICKING)
(Any idea how to get it to this page directly by clicking the 'payment' link)
Thanks in advance guys. |
|
|
sticks464
Joined: 31 Dec 2006
Posts: 2625
|
| Posted: Tue Dec 16, 2008 6:35 am |
|
|
When you set up your frames you should have given each frame area a name and an initial page to open so a frame would not appear empty
Code: <frame src="page.html" scrolling="no" marginheight="0" marginwidth="0" name="main">
Which it looks like you have done for the header and sidebar frames.
To get pages to open in the right frame you have to use the 'target' attribute for the links in the header menu as well as the sidebar. If you don't specify which frame to open in the links will open on the current page, in this case the header frame page
Code: <a href="page.html" target="main">Main</a> |
|
|
acupofmilo
Joined: 16 Dec 2008
Posts: 4
|
| Posted: Tue Dec 16, 2008 7:18 am |
|
|
Hi sticks, I think you missed my point.
I dont want the payment page to open up in the area marked "MENUPAGE"...i want the payment page to replace the entire page.
I.e...when i click "payment" in picture 1, i go straight to picture 3. |
|
|
sticks464
Joined: 31 Dec 2006
Posts: 2625
|
| Posted: Tue Dec 16, 2008 7:22 am |
|
|
| Then use "target=_blank" to open in a new window |
|
|
acupofmilo
Joined: 16 Dec 2008
Posts: 4
|
| Posted: Tue Dec 16, 2008 7:54 am |
|
|
Ahh...noted. It works.
On the other hand, how about if i want it to replace all the frames and show up in that same page (i.e instead of opening up a new window?) |
|
|
sticks464
Joined: 31 Dec 2006
Posts: 2625
|
| Posted: Tue Dec 16, 2008 8:22 am |
|
|
| You can try using target="_self" |
|
|
acupofmilo
Joined: 16 Dec 2008
Posts: 4
|
| Posted: Tue Dec 16, 2008 5:10 pm |
|
|
Still nothing mate...with the "target=_'self'" code, i still encounter my initial problem.
Anybody else with ideas? |
|
|
|
Corey Bryant
Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA
|
| Posted: Wed Dec 17, 2008 7:02 am |
|
|
What's the source code you are using?
acupofmilo wrote: Anybody else with ideas?
Don't use frames - they are problematic Building a site with frames might help you.
You might make sure that you are using a link to get to the payment page - not a button.
_________________
Corey
Toll Free Fax Numbers | Merchant Accounts | Microsoft Expressions |
|
|
| |