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 11-07-2009, 09:44 PM   #1 (permalink)
Junior Member
 
Join Date: 08-17-09
Posts: 17
iTrader: 0 / 0%
Latest Blog:
None

Justagreenhorn is liked by many
I Need my Whole Frameset To Refresh Every Time

I have a frameset page.

When I click on any link within any frame, I want the whole frameset (ie. all the frames) to be refreshed or reloaded.

Is there a simple way to do this?

Thanks in advance.
Justagreenhorn is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-08-2009, 09:56 AM   #2 (permalink)
v7n Mentor
 
Izzmo's Avatar
 
Join Date: 11-01-03
Location: Kansas City
Posts: 1,338
iTrader: 0 / 0%
Latest Blog:
Starting p90x today

Izzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web pro
Send a message via ICQ to Izzmo Send a message via AIM to Izzmo Send a message via MSN to Izzmo Send a message via Yahoo to Izzmo
Well, you can do this.. on anchor tag:

<a href="some_page.html" target="_parent">text</a>

That will go to the page and direct it at the whole page and not one frame.

But in order to "refresh" all of your frames, you will need javascript. That or the page you go to must have the same frameset as the one before if not using some sort of dynamic content (using PHP or ASP.NET)
__________________
Izzmo
Coding Guru Extraordinaire
ZeroWeb Hosting & Design - Customizable hosting for every type of user!
Izzmo is online now  
Add Post to del.icio.us
Reply With Quote
Old 11-08-2009, 12:24 PM   #3 (permalink)
Junior Member
 
Join Date: 08-17-09
Posts: 17
iTrader: 0 / 0%
Latest Blog:
None

Justagreenhorn is liked by many
I tried it with the target="_parent", but that just gives the contents of one single frame filling the whole of the new screen, with no more other frames.

If done with javascript, do I need to create a duplicate frameset which is identical to the first one?

How do I do it in javascript? Thank you.
Justagreenhorn is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-08-2009, 12:30 PM   #4 (permalink)
v7n Mentor
 
Izzmo's Avatar
 
Join Date: 11-01-03
Location: Kansas City
Posts: 1,338
iTrader: 0 / 0%
Latest Blog:
Starting p90x today

Izzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web pro
Send a message via ICQ to Izzmo Send a message via AIM to Izzmo Send a message via MSN to Izzmo Send a message via Yahoo to Izzmo
With javascript, what you will do is when someone clicks on the link, it will trigger a function which will go to the targeted page as well as "refresh" the other links by also sending the other frames to a page (which is the one they are on).

http://irt.org/script/591.htm

That is a good starting point to figure out how do it.

Let us know if you need any additional help with this problem.
__________________
Izzmo
Coding Guru Extraordinaire
ZeroWeb Hosting & Design - Customizable hosting for every type of user!
Izzmo is online now  
Add Post to del.icio.us
Reply With Quote
Old 11-08-2009, 02:18 PM   #5 (permalink)
Junior Member
 
Join Date: 08-17-09
Posts: 17
iTrader: 0 / 0%
Latest Blog:
None

Justagreenhorn is liked by many
In my first post in the thread, I asked how I can refresh the whole frame set.

The reason I want to do this is that I have a banner rotating script installed in frame 3, which I want to refresh when frame 2 is changed by clicking the a-link in frame 1. so that a new random banner will appear in frame 3.

In other words, when I click on a menu item in frame 1, I want, in addition to the normal content change in frame 2, I also want frame 3 to refresh at the same time.

It it possible?
Justagreenhorn is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-08-2009, 03:00 PM   #6 (permalink)
v7n Mentor
 
Izzmo's Avatar
 
Join Date: 11-01-03
Location: Kansas City
Posts: 1,338
iTrader: 0 / 0%
Latest Blog:
Starting p90x today

Izzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web pro
Send a message via ICQ to Izzmo Send a message via AIM to Izzmo Send a message via MSN to Izzmo Send a message via Yahoo to Izzmo
Did you go to that link I posted in my previous post? That will show you (basically) how to accomplish this.
__________________
Izzmo
Coding Guru Extraordinaire
ZeroWeb Hosting & Design - Customizable hosting for every type of user!
Izzmo is online now  
Add Post to del.icio.us
Reply With Quote
Old 11-08-2009, 08:01 PM   #7 (permalink)
Junior Member
 
Join Date: 08-17-09
Posts: 17
iTrader: 0 / 0%
Latest Blog:
None

Justagreenhorn is liked by many
Q591 How do you reload a page in frame 2 from frame 1?
Quote:

Try something like:
<A HREF="javascript:parent.framename.location.reload( )">Reload</A>
where framename is the name of frame 2.

Alternatively, you can use the frame index number (1st frame is 0, 2nd frame is 1..., nth frame is n-1), combined with a simple test to see if the browser supports the locaton objects reload() method:

<script language="JavaScript"><!--
function reloadFrame(number) {
if (document.images)
parent.frames[number-1].location.reload();
else
parent.frames[number-1].location.href = parent.frames[number-1].location.href
}
//--></script>

<a href="javascript:reloadFrame(2)">Reload</a>
================================================== ==========

Excuse me for being greener than greenhorn. According to the suggestions given there,
the code is used to "reload a page in frame 2 from frame 1".

But what I need is to reload frame 2 and frame 3 from frame 1 at the same time (ie. with only one click of the mouse in frame 1).

How should I modify the code to make it so that?

Last edited by htmlbasictutor; 11-09-2009 at 12:59 AM..
Justagreenhorn is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-09-2009, 01:44 AM   #8 (permalink)
Junior Member
 
Join Date: 08-17-09
Posts: 17
iTrader: 0 / 0%
Latest Blog:
None

Justagreenhorn is liked by many
Thanks for the hint Izzmo, I've sorted the problem out.
Justagreenhorn is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-09-2009, 03:01 PM   #9 (permalink)
v7n Mentor
 
Izzmo's Avatar
 
Join Date: 11-01-03
Location: Kansas City
Posts: 1,338
iTrader: 0 / 0%
Latest Blog:
Starting p90x today

Izzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web pro
Send a message via ICQ to Izzmo Send a message via AIM to Izzmo Send a message via MSN to Izzmo Send a message via Yahoo to Izzmo
No problem, glad you figured it out.
__________________
Izzmo
Coding Guru Extraordinaire
ZeroWeb Hosting & Design - Customizable hosting for every type of user!
Izzmo is online now  
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
Problem with FRAMESET Contents Justagreenhorn Coding Forum 3 10-25-2009 10:20 PM
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
Refresh Page, New Image Each Time nitsua0491 Web Design Lobby 10 07-15-2006 09:35 PM


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


All times are GMT -7. The time now is 11:21 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.