comparison tests/templates/AjaxPaneJs.html @ 0:a4671277546c tip

created the repository for the thymian project
author ferencd
date Tue, 17 Aug 2021 11:19:54 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:a4671277546c
1 <script>
2 function load{paneName}Pane(){
3 var xmlhttp;
4 if (window.XMLHttpRequest){
5 xmlhttp=new XMLHttpRequest();}
6 else{
7 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
8 }
9 xmlhttp.onreadystatechange=function(){
10 if (xmlhttp.readyState==4 && xmlhttp.status==200){
11 document.getElementById("{paneName}pane").innerHTML=xmlhttp.responseText;}
12 }
13 xmlhttp.open("GET","{url}?pane={paneName}", true);
14 xmlhttp.send();
15 }
16 </script>