Hi Everyone:
I have very limited Javascript knowledge. We are trying to switch a page from a frameset (x2 frames) to a regular .html page with an inline frame. The javascript is in the main content area. It writes links to the side column frameset. My boss wants to do away with the frames and have the javascript write to the inline frame. Here is the code that I think applies (in yellow):
I don't know how to change the "parent.frames[0].document.writeIn to write in the inline frame. The inline frame's actual page name is: menu.html and the id of the inline frame is: menumarker. The inline frame is located in a page called: player.html
Thanks for any help... I need it!
Bill
I have very limited Javascript knowledge. We are trying to switch a page from a frameset (x2 frames) to a regular .html page with an inline frame. The javascript is in the main content area. It writes links to the side column frameset. My boss wants to do away with the frames and have the javascript write to the inline frame. Here is the code that I think applies (in yellow):
Code:
// Simple error check to make sure that there are markers in the file.
if (iNumMarkers != -1) {
// "For" loop which creates all of the inline JavaScript anchor tags
for (var i = 1; i <= iNumMarkers; i++) {
sTempString = sTempString + "<A HREF=\"javascript:parent.frames[1].seekToMarker(";
sTempString = sTempString + i + ")\">";
sTempString = sTempString + document.MediaPlayer1.GetMarkerName(i);
sTempString = sTempString + "</A><BR>"
}
// Actual code which writes the information to the other frame.
parent.frames[0].document.open();
parent.frames[0].document.writeln("<HTML><BODY BGCOLOR=\"#ffffff\">");
parent.frames[0].document.writeln(sTempString);
parent.frames[0].document.writeln("</BODY></HTML>");
parent.frames[0].document.close();
} else {
alert("There are no Markers in this file");
}
}
Thanks for any help... I need it!
Bill