473,388 Members | 1,031 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,388 software developers and data experts.

Update a frame you're not in

Ade
Hi,

I have a page which uses frames - the user clicks on a menu in the left
frame, the requested information is loaded into the main frame. I would like
to have one small pane in the bottom of the screen telling the user when the
particular main frame page was last updated. I have the javascript to
generate the date text but can't find a way of updating the text in a frame
that I'm not actually in (if that makes sense!).

Can anyone please help me?

Thanks,

Ade
May 25 '07 #1
3 1285
Ade wrote:
Hi,

I have a page which uses frames - the user clicks on a menu in the left
frame, the requested information is loaded into the main frame. I would like
to have one small pane in the bottom of the screen telling the user when the
particular main frame page was last updated. I have the javascript to
generate the date text but can't find a way of updating the text in a frame
that I'm not actually in (if that makes sense!).

Can anyone please help me?
parent.frames['frame_name'].document.getElementById('STATUS_DIV').childNodes[0].nodeValue
= 'Whatever!';

Assuming a frame named "frame_name" and a element (DIV in my example)
with the ID "STATUS_DIV."

If you require negotiation of markup, use innerHTML.

Untested.

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
May 25 '07 #2
On May 25, 6:46 pm, -Lost <maventheextrawo...@techie.comwrote:
Ade wrote:
Hi,
I have a page which uses frames - the user clicks on a menu in the left
frame, the requested information is loaded into the main frame. I would like
to have one small pane in the bottom of the screen telling the user when the
particular main frame page was last updated. I have the javascript to
generate the date text but can't find a way of updating the text in a frame
that I'm not actually in (if that makes sense!).
Can anyone please help me?

parent.frames['frame_name'].document.getElementById('STATUS_DIV').childNodes[0].nodeValue
= 'Whatever!';

Assuming a frame named "frame_name" and a element (DIV in my example)
with the ID "STATUS_DIV."

If you require negotiation of markup, use innerHTML.

Untested.

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
Or,
window.top.frame_name.document.getElementById("STA TUS_DIV").innerHTML
= "Whatever";

May 25 '07 #3
Ade

"Darko" <da**************@gmail.comwrote in message
news:11**********************@q66g2000hsg.googlegr oups.com...
On May 25, 6:46 pm, -Lost <maventheextrawo...@techie.comwrote:
>Ade wrote:
Hi,
I have a page which uses frames - the user clicks on a menu in the left
frame, the requested information is loaded into the main frame. I would
like
to have one small pane in the bottom of the screen telling the user
when the
particular main frame page was last updated. I have the javascript to
generate the date text but can't find a way of updating the text in a
frame
that I'm not actually in (if that makes sense!).
Can anyone please help me?

parent.frames['frame_name'].document.getElementById('STATUS_DIV').childNodes[0].nodeValue
= 'Whatever!';

Assuming a frame named "frame_name" and a element (DIV in my example)
with the ID "STATUS_DIV."

If you require negotiation of markup, use innerHTML.

Untested.

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.

Or,
window.top.frame_name.document.getElementById("STA TUS_DIV").innerHTML
= "Whatever";
Thanks to you both for your responses, I shall give them both a go.

Regards,

Ade
May 25 '07 #4

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

Similar topics

7
by: lawrence | last post by:
2 Questions: 1.) Can anyone think of a way to speed up this function? It is terribly slow. I plan to reduce the number of directories to 3, which I guess will speed it up in the end. 2.) This...
15
by: Peter | last post by:
I really can't understand why you still use it or why you started using it in the first place.
11
by: Kamus of Kadizhar | last post by:
I have the following function which generates MD5 hashes for files on a local and remote server. The remote server has a little applet that runs from inetd and generates an MD5 hash given the file...
11
by: Barney Norris | last post by:
Hi, The W3C validator tells me this page isn't valid HTML 4.01 Strict: http://www-student.cs.york.ac.uk/~jban100/wont_validate.html The reason it gives is I've closed meta tags with a '/'...
0
by: Lucky Carl | last post by:
DFS wrote: > You wiped XP but you're still obsessed with Windows. You need to wipe > your brain. Why does Microsoft pay this person to astroturf in COLA ?
383
by: John Bailo | last post by:
The war of the OSes was won a long time ago. Unix has always been, and will continue to be, the Server OS in the form of Linux. Microsoft struggled mightily to win that battle -- creating a...
354
by: Montrose... | last post by:
After working in c# for a year, the only conclusion I can come to is that I wish I knew c. All I need is Linux, the gnu c compiler and I can do anything. Web services are just open sockets...
3
by: comp.lang.php | last post by:
I have a counter that evokes the "Three Strikes You're Out" rule.. if you make more than N mistakes it auto-resets to avoid flooding $_SESSION with attempt after attempt, etc. However, the...
32
by: Nu | last post by:
I want to protect myself from if someone with a fast connection hammers my site. It's not denial of service attacks, but offline downloaders (of course that don't show they're offline downloaders...
102
by: BoogieWithStu22 | last post by:
I am running into a problem with a web page I have created when viewing it in IE6 on some machines. The page has a database lookup. The user enters an account name or number and clicks a lookup...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...

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.