Mistři v programování na #hovnokod

JavaScript #527

function ExportExcel(boolean forceComplete)
{
    if (forceComplete){
        var oXML = document.createElement('XML');
        if (document.getElementById('ExportExcel') != null) 
			    document.body.removeChild(document.getElementById('ExportExcel'));
        var URL = 'ExportExcelHandler.ashx?taskID=' + document.getElementById("hTaskId").value +
                  '&guids=' + document.getElementById("hSelIds").value
        oXML.src = URL;
        document.body.appendChild(oXML);  
        oXML.ondatasetcomplete = showExcelFile;
    } else  {
	setTimeout("ExportExcel(true);", 100);
    }
}

HovnoKod,