473,387 Members | 1,501 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Refreshing multiple frames' contents?

I have a page consisting of three frames. Top frame shows db rows,
middle frame shows contents of a file, bottom frame has buttons to
change file/row status and/or delete them.

The desired bahaviour: after clicking the "change status" or "delete"
button in bottom screen, the top and middle frames immediately show
updated data.

Achieving this in a <a href [...] is not a problem, I use the following
Javascript line:

<a href="status.php" target='bottom'
Onclick="parent.frames[1].location.href='topcontent.html';
parent.frames[2]='centercontent.html'; return true;">link</a>

But another page I use only updates a db entry and has no clickable
items. Is it possible to have it automatically refresh any of the
frames' content without the user clicking a link, immediately after the
db query is executed ?

Tips welcome, as always!

Thanks in advance
Sh.
Mar 14 '06 #1
2 1956
maybe after db is executed, in that frame output <script
type="text/javascript">
parent.frames[1].location.href='topcontent.html';
parent.frames[2]='centercontent.html';
</script>

and by the way, if you have problems get phpMyAmin source ;] a very
advanced example of what you are tyring to do if i am right.

Regards

Mar 14 '06 #2
I would most probabl use AJAX which would eliminate the need for a
refresh and would also allow you to arrange the order of execution of
your functions.

Mar 14 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: David | last post by:
everywhere I go, i get told "don't use frames, use php instead" ok... so how do i go about it? I want a top banner that doesn't move, and a "contents" type list on the left (that may have a...
1
by: Jeff Johnson | last post by:
Hi There, Is there anyone out there who can tell me how to create multiple frames with only one scroll bar to scroll the entire page? Big Thanks, Jeff
2
by: Chris New | last post by:
G'Day All I am having trouble dynamically assigning a value to a table's cell from one frame to another frame. I've created a website that is primarily viewed in a frameset consisting of 2...
4
by: sjoerd | last post by:
Hi, I have a web welcome-page consisting of three frames. On the left there is an index. The two others (above each other on the right of the screen) contain data related to the index-items. ...
3
by: John Ortt | last post by:
I appologise for reposting this but I have been trying to find a solution all week with no avail and I was hoping a repost might help somebody more knowledgable than myself to spot the message... ...
3
by: GraVity via DotNetMonster.com | last post by:
Hello all I am new to asp.net or web programming I have a requirement, I have to submit a document to another server using my webpage, there is a perticular protocol for doing that. This protocol...
3
by: vance | last post by:
Hello all: I am new to CSS and am attempting to design a page without using the frame tag in html. I have searched the web and have not found an answer to my problem. My page is quite simple,...
4
by: arnaudk | last post by:
I am trying to come up with a class design to deal with asynchronous data to be stored and analyzed over multiple time frames and could really use some design input. This is a rather long question...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.