Ok. I have two XML pages one with each persons info(which movies each person has made and a bio) and one with each short movies info(size,format,title, who made it).
In the movie section of the site I'm trying to load the movie names from the movie xml into a table In a Iframe(this works) and be able to click on them and have a short discription of the movie and a link to download load into another Iframe(this is where my problem is).
these are the two main functions useing what you showed me yesterday.
//this one is set onLoad and opens the movie xml and creates a table in this frame where each cell is a link to a diffrent movie ID
function mProcess(){
var xmlDoc=new ActiveXObject("Microsoft.XMLDOM")
xmlDoc.async="false"
xmlDoc.load("BB_MOVS.XML")
var z = xmlDoc.getElementsByTagName("SHORT")
var strHTML = "<table cellspacing=\"5\" cellpadding=\"3\" style=\"border:1px black solid;\" ><tr>";
for (i = 0; i < z.length; i++){
var vid = z.item(i);
var Mname = vid.childNodes[0];
var Mnum = vid.childNodes[8];
strHTML += "<td onmouseover=\"over(this);\" onmouseout=\"out(this);\" onClick=\"MDprocess('"+Mnum.text+"');\"><p>"+Mname.text+"</p></td>";
}
strHTML += "</tr></table>";
document.getElementById("displayData").innerHTML = strHTML;
}
//this one I have set on a onClick and should open a movie discription and a link to download in the right iframe.
function MDprocess(movid){
var xmlDoc=new ActiveXObject("Microsoft.XMLDOM")
xmlDoc.async="false"
xmlDoc.load("BB_MOVS.XML")
var z = xmlDoc.getElementsByTagName("SHORT")
var strHTML = "<table style=\"width:540px;border:1px black solid;\" ><tr><td style=\"width:540px;\">";
for (i = 0; i < z.length; i++){
if (z.item(i).getElementsByTagName("ID") == movid){
var movie = z.item(i);
var name = movie.childNodes[0];
var sumery = movie.childNodes[3];
var pics = movie.childNodes[4];
strHTML+="<p>"+name.text+"</p></td></tr><tr><td style=\"width:540px;\"><img ALIGN=\"left\" border=\"0\" src="+pics.text+" width=\"250\" height=\"200\"><b>"+sumery.text+"</b></td></tr>";
}
}
strHTML+="</table>";
parent.frames["right"].document.body.innerHTML = strHTML;
}
Hope you can understand all that.
Thanks