Ciao a tutti
premetto che non ci capisco molto di asp, sto cercando di utilizzare flash con asp.. il problema è il seguente con il file asp :
Tipo di errore:
Errore di run-time di Microsoft JScript (0x800A004C)
Impossibile trovare il percorso
/Test/gallery/imageData.asp, line 35
ecco il codice completo:
<%@ language="jscript" %>
<%
var imgPath = '/images';
var xml = '<?xml version="1.0" encoding="UTF-8" ?>';
xml += '<SIMPLEVIEWER_DATA maxImageDimension="480" textColor="0x993300" frameColor="0x993300" frameWidth="20" stagePadding="40" thumbnailColumns="3" thumbnailRows="4" navPosition="left" navDirection="LTR" title="FOTOMAURO PORTFOLIO" imagePath="' + imgPath + '/images/" thumbPath="' + imgPath + '/thumbs/">';
var count = 1;
var fso, f, fc;
var folderspec = Server.MapPath(imgPath + '/images');
fso = new ActiveXObject("Scripting.FileSystemObject");
f = fso.GetFolder(folderspec);
fc = new Enumerator(f.files);
for (; !fc.atEnd(); fc.moveNext()) {
xml += '<IMAGE>';
xml += '<NAME>' + fc.item().Name + '</NAME>';
//add auto captions: 'Image X'
// xml += '<CAPTION>Image ' + fc + '</CAPTION>';
xml += '</IMAGE>';
}
fc = null;
f = null;
fso = null;
xml += '</SIMPLEVIEWER_DATA>';
Response.Write(xml);
Response.End();
%>
grazie mille, sto impazzendo

Rispondi quotando
