git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_SGD/trunk@15 eb19766c-00d9-a042-a3a0-45cb8ec72764
39 lines
1.2 KiB
JavaScript
39 lines
1.2 KiB
JavaScript
var currloc = location.pathname.substring(0,location.pathname.lastIndexOf('/')+1);
|
|
var user = '';
|
|
|
|
function CheckFolderExists(){
|
|
xmlHttpMyDropDocuments=GetXmlHttpMyDropDocumentsObject();
|
|
if (xmlHttpMyDropDocuments===null){
|
|
alert ("Browser does not support HTTP Request");
|
|
return;
|
|
}
|
|
var url=MY_DROP_DOCUMENTS;
|
|
|
|
xmlHttpMyDropDocuments.onreadystatechange=MyDropDocumentsStateChanged;
|
|
xmlHttpMyDropDocuments.open("GET",url,true);
|
|
xmlHttpMyDropDocuments.send(null);
|
|
|
|
}
|
|
|
|
function MyDropDocumentsStateChanged(){
|
|
if (xmlHttpMyDropDocuments.readyState==4 || xmlHttpMyDropDocuments.readyState=="complete"){
|
|
if(xmlHttpMyDropDocuments.responseText != ""){
|
|
|
|
document.getElementById("MyDropDocumentsBlock").innerHTML=xmlHttpMyDropDocuments.responseText;
|
|
}
|
|
}else{
|
|
|
|
document.getElementById("MyDropDocumentsBlock").innerHTML=' Comprobando la carpeta de documentos personales...<br><br><br>';
|
|
}
|
|
}
|
|
|
|
function GetXmlHttpMyDropDocumentsObject(){
|
|
var objXMLHttpMyDropDocuments=null;
|
|
if (window.XMLHttpRequest){
|
|
objXMLHttpMyDropDocuments=new XMLHttpRequest();
|
|
}else if (window.ActiveXObject){
|
|
objXMLHttpMyDropDocuments=new ActiveXObject("Microsoft.XMLHTTP");
|
|
}
|
|
return objXMLHttpMyDropDocuments;
|
|
}
|