Ezilon.com - Target Your Audience, be Seen in Your Region

Writing Info to a page after it has loded

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.
Josh Simpson's picture

They have: 147 posts

Joined: Dec 1999

I am wondering, Smiling

If i have three frames like this
+--+-------------+
| +-------------+
| | |
| | |
+--+-------------+
and the left (My navigation frame) and the top frame (My location frame, eg you are here ->> blablabla)has loaded, if the main frame gets a page loaded into it from a link in the navigation frame, can i have a onload command with data in it like onload="location("Blablabla')"'
and have it write this to say a in the top frame,
the aie of this is to have a onload event on every page and all i need to do is put data in the onload event and have it updated in the top frame.
Giving me an "you are here" part of my page

hop that wasent too confusing

any ideas?

JLS (Joshua Lee Simpson)

Mark Hensler's picture

He has: 4,044 posts

Joined: Aug 2000

+--+-------------+
|  +-------------+
|  |             |
|  |             |
+--+-------------+

'
read this: http://webmaster-forums.com/showthread.php?threadid=11893

Mark Hensler ["Max Albert"] [Email]
If there is no answer on Google, then there is no question.

Josh Simpson's picture

They have: 147 posts

Joined: Dec 1999

Thanks Mark
I got it working for IE and NS6 but im having trouble with ns4

i got this

function loc(locdata)
{
alert(locdata)
if (document.layers) {
document.layers.loc.document.write(locdata);
document.layers.loc.document.close();
}
else
if (document.all) {
parent.nav.document.all.loc.innerHTML = locdata;
}
else if (document.getElementById) {
    parent.nav.document.getElementById("loc").innerHTML = locdata;
}
}

'

what do i need to change to get ns4 to get over the frame
I tryed this but it doesent seam to work Sad

parent.nav.document.layers.loc.document.write(locdata);
parent.nav.document.layers.loc.document.close();

'

What am I missing?

JLS (Joshua Lee Simpson)