Attach vault to accordion

Attach vault to accordion
</> Source
<!DOCTYPE html>
	<title>Attach vault to accordion</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
	<link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlx.css"/>
	<link rel="stylesheet" type="text/css" href="../../../codebase/fonts/font_roboto/roboto.css"/>
	<link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlxvault.css"/>
	<script src="../../../codebase/dhtmlx.js"></script>
	<script src="../../../codebase/dhtmlxvault.js"></script>
	<script src="../../../codebase/swfobject.js"></script>
		div.sample_title {
			font-size: 14px;
			font-family: Roboto, Arial, Helvetica;
			color: #404040;
			font-weight: 500;
			margin: 15px 1px;
		div#maxsize_info {
			font-size: 14px;
			font-family: Roboto, Arial, Helvetica;
			color: #404040;
			margin: 16px 1px 20px 1px;
		div#accObj {
			position: relative;
			width: 320px;
			height: 400px;
			box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.09);
		// in case of attach to dhtmlx component
		// vault.js should be included after dhtmlx.js
		var myAcc, myVault;
		function doOnLoad() {
			if (typeof(dhtmlXAccordion) == "undefined") {
				alert("dhtmlxAccordion required for this demo.");
			myAcc = new dhtmlXAccordion({
				parent: "accObj",
				items: [
					{ id: "a1", text: "dhtmlxVault" },
					{ id: "a2", text: "b" },
					{ id: "a3", text: "с" }
			window.dhx4.ajax.get("../server/upload_conf.php", function(r){
				var t = window.dhx4.s2j(r.xmlDoc.responseText);
				if (t != null) {
					myVault = myAcc.cells("a1").attachVault(t);
					// update max file size notice
					document.getElementById("maxsize_info").innerHTML = "Upload max filesize: "+myVault.readableSize(t.maxFileSize);
<body onload="doOnLoad();">
	<div class="sample_title">Attach vault to accordion</div>
	<div id="maxsize_info">&nbsp;</div>
	<div id="accObj"></div>


Check documentation to learn how to use the components and easily implement them in your applications.