hi,
function showFileContent(id){
var allowdExt = [“gif”,“jpeg”,“jpg”,“png”,“html”,“shtml”,“htm”,“css”,“xml”];
var re = new RegExp(“[a-z0-9]+\.([a-z]{1,5})$”)
var arr = re.exec(id)
if(arr==null)
return;
if(RegExp.index!=-1){
for(var i=0;i<allowdExt.length;i++){
if(RegExp.$1==allowdExt[i]){
if(!myLayout.dhxWins)myLayout.dhxWins=new dhtmlXWindows()
myLayout.dhxWins.createWindow(“popup”,0,0,800,600);
myLayout.dhxWins.window(“popup”).center();
myLayout.dhxWins.window(“popup”).attachURL(“./getFile.php?file=”+id)
return;
}
}
alert(“There is no action associated with this file type”);
}
}
getFile.php What is the content???
myLayout.dhxWins.window(“popup”).attachURL(“./getFile.php?file=”+id)
pop up image why will not open??? help me