Huh it seems that the problem is the .php script that should create the .xml file. I've found this one in the movie section (reference goes to Andrew Ryan) :
<?
clearstatcache();
$filename=$xmlToSave;;
$fp=@fopen($filename,"w");
$rec=$xmlContent;
fwrite($fp,$rec);
fclose($fp);
chmod($filename, 0775 );
if ($fp) {
echo ("&erro=NONE&statusText=SUCCESS! changes saved to database!");
} else {
echo ("&erro=OK&statusText=SERVER ERROR!, there was a problem. Pls try again!");
exit();
}
?>
Changed those lines in the flush function:
function flush() {
xmlToSave = "testi.xml"
xmlContent = myXML
nomod.text = xmlContent;
loadVariablesNum ("savexml.php", "", "POST");
_root.statusText = "saving changes, pls wait...";
}
And it works just fine!
Now do you think it's possible to set a sendAndLoad instead of loadVariablesNum?