Click to See Complete Forum and Search --> : function call - target different frame


spooooky
06-17-2003, 01:59 PM
hi there!

I want to open a menu in a frame from another frame, using a function.

without a function it would look like this:

<a href="javascript:show('Lehrveranstaltungen')" target="Inhalt">Vorlesungsübersicht</a>


my function is like:

function loadFrames(page1,page2,submenu) {
eval("parent.Hauptframe.location.href='"+page1+"'");
<!--eval("parent.Inhalt.location.href='"+page2+"'");
eval("parent.Inhalt.location.show('Download')");

--- here I want to perform the action as described above:
in words: open "submenu" in frame "Inhalt" ---

}

how do it?!?! i´m desperate :confused:


thank u folks

Khalid Ali
06-17-2003, 04:04 PM
This is how you can do that.

parent.frameName.location.href = url;

spooooky
06-18-2003, 05:35 PM
no sorry i should have explained more detailed

I dont want to load a whole new page in that frame, but just perform an action as if a button is clicked in that frame and a submenu opens using the following function.

function show(Id)
{ var Id = Id;
var Status = attribut(Id);
if (Status == "none") document.getElementById(Id).style.display = "inline";
else if (Status == "inline") document.getElementById(Id).style.display = "none";
}

so I want now the main frame on the right to load a new page combined with that function call for the menu frame on the left. thats why I need a function call in a function.

And I have no idea how to it. I tried several things but failed

here´s the link:

http://www.wiwi.uni-rostock.de/~prowi/index_Studium_und_Lehre.html


thanx, David

Khalid Ali
06-18-2003, 05:41 PM
what is this function suppose to to..
show(id)

spooooky
06-18-2003, 05:50 PM
usually this function is called when u click a button in the menu on the left and then a submenu opens like

javascript:show('Klausuren')