Hi
I have the following problem, I have to write an XML file and this is the code:
<script language=javascript>
function Write()
{
if (document.getElementById("Number").value.length==0)
{
alert('Inserire il numero della sessione')
document.getElementById("Number").focus()
return;
}
xmlDoc = new ActiveXObject( "Microsoft.XMLDOM" );
root = xmlDoc.createElement("Sessione")
xmlDoc.appendChild(root)
child1 = xmlDoc.createElement("Id")
child1.text=document.getElementById("Number").value;
root.appendChild(child1)
p=xmlDoc.createProcessingInstruction("xml","version='1.0'")
xmlDoc.insertBefore(p,root)
xmlDoc.save("Sessione.xml")
}
On my computer it works fine, when I try to access it from the web, published with a physical address, it gives me anouthorize access, Is there a way to know the user that is running the script, so I can giv him access? Or is there another solution?
Any Idea bye Alex...
I have the following problem, I have to write an XML file and this is the code:
<script language=javascript>
function Write()
{
if (document.getElementById("Number").value.length==0)
{
alert('Inserire il numero della sessione')
document.getElementById("Number").focus()
return;
}
xmlDoc = new ActiveXObject( "Microsoft.XMLDOM" );
root = xmlDoc.createElement("Sessione")
xmlDoc.appendChild(root)
child1 = xmlDoc.createElement("Id")
child1.text=document.getElementById("Number").value;
root.appendChild(child1)
p=xmlDoc.createProcessingInstruction("xml","version='1.0'")
xmlDoc.insertBefore(p,root)
xmlDoc.save("Sessione.xml")
}
On my computer it works fine, when I try to access it from the web, published with a physical address, it gives me anouthorize access, Is there a way to know the user that is running the script, so I can giv him access? Or is there another solution?
Any Idea bye Alex...