RE: FN-FORUM: JScript driving me mad
date posted 14th January 2004 18:33
Try
function updatefile(newName, itemName ,filePath)
{
ind = newName.lastIndexOf("\\");
thisName = newName.substring(ind+1,
newName.length);
-> error line ->
eval('document.cmform.'+itemName+'.value=\''+thisName+'\');
eval('var myImage =
document.preview_'+itemName);
myImage.src = "showimage.asp?path=" + filePath +
thisName
}
----
Philip Painter, VIAS, 07790 666784