salve a tutti !
io ho il seguente problema...STO SU ARUBA...
no il problema vero è che sono alle prime armi con asp...e gia stiamo ai feri corti...
in sostanza io ho un pannellino di controllo swf in remoto con 3 campi di imput...mando le variabili con un sendAndLaoad aun file "gestore.asp" che si trova nella mia cartella /public del mio sito .com ....
questo getoreasp contiene il seguente codice:
<%@ Language=JavaScript %>
<%
var to_do = String(Request("to_do"));
var this_script_url = String(Request.ServerVariables("SCRIPT_NAME"));
var news_file = "news.xml";
var abs_path = String(Request.ServerVariables("PATH_TRANSLATED")) ;
var file_to_open = abs_path.replace(/\\\w*\.asp/,"\\") + news_file;
fso = new ActiveXObject("Scripting.FileSystemObject");
if (fso.FileExists(file_to_open)){
if (to_do == "add_entry"){
var ForReading = 1, ForWriting = 2, ForAppending = 8;
fs_stream = fso.OpenTextFile(file_to_open,ForAppending);
var pass , news , titolo , tipo;
var pass = String(Request("pass"));
var news = String(Request("news"));
var titolo = String(Request("titolo"));
var tipo = String(Request("tipo"));
date_object = new Date();
date_string = date_object.toString()
fs_stream.Write("<news data=\""+date_string+"\" titolo='"+titolo+"\" tipo=\""+tipo+"\">"+news+"</news>");
fs_stream.close();
Response.Write("att=ok");
} // end if (to_do == "add entry")
} // end if file exists
else {
Response.Write("att=error");
}
%>
il file xml si chiama news.xml
grazie a tutti