djr33,
Actually I am using php on my system an not online, works great! Anyways I have provided the routine below perhaps you can see an error?
Code:
function loadtechchats(d,dbiz,dclient,demail,dissue,dasstech,dtextfield){
docstate=parent.document.getElementById('popuptechwindow').style.visibility;
if(docstate==null){
docstate.length=0;
}
if(docstate.length==0||docstate=='hidden'){
if(d.id=='techchat'){
width="780";
height="350";
thetechid=document.getElementById('technamepermanent').innerHTML;
pagephpload='techwindows.php?'+'dbname='+dbiz+'&dcname'+dclient+'&demail='+demail+'&dissue='+dissue+'&dtech='+thetechid+'&dquestion='+dtextfield;//+'&dtechid'+thetechid;
parent.document.getElementById('adminpanelpop').innerHTML = '<iframe id=mainiframe1 frameborder=0 width='+width+' height='+height+' scrolling='+scrll+' src=\''+pagephpload+'\'></iframe>';
parent.document.getElementById('popuptechwindow').style.visibility='visible';
}
// reference to iframe with id 'ifrm'
var ifrm = parent.document.getElementById('mainiframe1');
//alert(ifrm);
// reference to window in the iframe
var win = ifrm.contentWindow;
// reference to document in iframe
var doc = ifrm.contentDocument? ifrm.contentDocument: ifrm.contentWindow.document;
for(i = 1; i < 9; i++){
//alert(doc.getElementById('clientid1').innerHTML);
if(doc.getElementById('clientid'+i).innerHTML==''||doc.getElementById('clientid'+i).innerHTML==null){
//load the image file to represent the chat is loaded..._SESSION
doc.getElementById('clientid'+i).innerHTML=dclient;
doc.getElementById('busnameclientid'+i).innerHTML=dbiz;
doc.getElementById('clientid'+i).style.backgroundImage = "url('./remake/manillagotfocus.gif')";
doc.getElementById('clientid'+i).style.color='#C11A1A';
doc.getElementById('busnameclientid'+i).style.color='#C11A1A';//techid
doc.getElementById('clientid'+i).style.visibility='visible';
i=9;
}
}
}
Bookmarks