Connected frontend and backend in formatter
This commit is contained in:
		| @@ -25,9 +25,9 @@ | ||||
|                     onfocus="clearDefaultContent(this, 'Insert XML here');"></textarea> | ||||
|                 <br><br> | ||||
|                 <button id="requestButton" class="max-width block-label action-button active" | ||||
|                     onclick="performRequest('xsdpost', true, true)">Prettify XML</button> | ||||
|                     onclick="performFormatRequest('prettifypost', true)">Prettify XML</button> | ||||
|                 <button id="requestButton" class="max-width block-label action-button active" | ||||
|                     onclick="performRequest('xsdpost', true, true)">Minimize XML</button> | ||||
|                     onclick="performFormatRequest('minimizepost', true)">Minimize XML</button> | ||||
|                 <br><br> | ||||
|  | ||||
|                 <label for="resultArea"><b>Result:<span id="procinfo"></span></b></label> | ||||
| @@ -73,22 +73,17 @@ | ||||
|     </script> | ||||
|     <script> | ||||
|         function getProcessor() { | ||||
|             return document.getElementById("processors").value; | ||||
|             return "libxml"; | ||||
|         } | ||||
|     </script> | ||||
|     <script> | ||||
|         function getVersion() { | ||||
|             if (getProcInfo() == "xalan") { | ||||
|                 return "1.0"; | ||||
|             } else { | ||||
|                 return "3.0"; | ||||
|             } | ||||
|             return "1.0"; | ||||
|         } | ||||
|     </script> | ||||
|     <script> | ||||
|         function getProcInfo() { | ||||
|             var processVariables = document.getElementById("processors").value;// + "&version=" + document.getElementById("versions").value; | ||||
|             return processVariables; | ||||
|             return "libxml"; | ||||
|         } | ||||
|     </script> | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user