Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Old 10-22-2009, 09:27 PM   #1 (permalink)
Junior Member
 
Join Date: 08-17-09
Posts: 17
iTrader: 0 / 0%
Latest Blog:
None

Justagreenhorn is liked by many
Problem with FRAMESET Contents

I have a frameset webpage consisting of a "left menu frame" with two "content frames".

What I want is this:-

When I click on one link in the left menu, I want the contents of two target frames to change to my desired (but different) html pages.

How can I do this? Presently, I can only change the contents of one frame, while the other frame remains with the same fixed content.

Many thanks in advance.
Justagreenhorn is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-23-2009, 08:28 AM   #2 (permalink)
Junior Member
 
Join Date: 01-22-09
Posts: 12
iTrader: 0 / 0%
Latest Blog:
None

titan is liked by many
If you are familiar with coding then I would suggest,
1. Have the two frames( in two panels) in one webpage so that you can apply different styles to both the frames and for a user it looks like they are two seperate pages.But for you it is just one webpage and can be viewed with just one click of the link.
2.If you are familiar with .Net and using Visual Studio, I would suggest AJAX Tabs as well
http://www.asp.net/AJAX/AjaxControlT...Tabs/Tabs.aspx
__________________
www.AsbestosEffects.Com
titan is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-25-2009, 03:27 AM   #3 (permalink)
Contributing Member
 
Join Date: 11-13-07
Location: London
Posts: 75
iTrader: 0 / 0%
Latest Blog:
None

urstop is liked by many
You can achive this thru Javascript, you can write a click event for your left menu hyper link. And in that click event, get reference to both the FrameWindows and then set the Frame Windows locations to your required URLS. Below is how the code will look like(not the exact code),

Quote:
function leftMenuClick()
{
var frms = window.frames;
frms[0].contentWindow.location.href = "url1";
frms[1].contentWindow.location.href = "url2";
}
__________________
UK Freelance Web Developer
urstop is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-25-2009, 10:20 PM   #4 (permalink)
Junior Member
 
Join Date: 08-17-09
Posts: 17
iTrader: 0 / 0%
Latest Blog:
None

Justagreenhorn is liked by many
Quote:
================================================== =====
function leftMenuClick()
{
var frms = window.frames;
frms[0].contentWindow.location.href = "url1";
frms[1].contentWindow.location.href = "url2";
}
================================================== =====
Sorry to be spoonfed...

My 2 content pages' framenames are "contentpage1" and "contentpage2".
How should I write the whole correct whole syntax? Thanks.
Justagreenhorn is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


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

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
frameset image swap HELP chuco61 Web Design Lobby 2 10-17-2008 10:09 PM
How do I remove a Double Header on my Frameset Home Page? ADUBIN Coding Forum 2 10-08-2008 06:05 AM
frameset help chuco61 Coding Forum 4 10-06-2008 03:15 PM
How to Center web with FRAMESET? skyscraper Web Design Lobby 5 04-25-2008 04:58 AM
DIV SRC FrameSet Question WebWholesaler Coding Forum 1 03-18-2008 12:52 PM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 01:40 AM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.