Mercurial > thymian
annotate 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 |
| rev | line source |
|---|---|
| ferencd@0 | 1 <script> |
| ferencd@0 | 2 function load{paneName}Pane(){ |
| ferencd@0 | 3 var xmlhttp; |
| ferencd@0 | 4 if (window.XMLHttpRequest){ |
| ferencd@0 | 5 xmlhttp=new XMLHttpRequest();} |
| ferencd@0 | 6 else{ |
| ferencd@0 | 7 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); |
| ferencd@0 | 8 } |
| ferencd@0 | 9 xmlhttp.onreadystatechange=function(){ |
| ferencd@0 | 10 if (xmlhttp.readyState==4 && xmlhttp.status==200){ |
| ferencd@0 | 11 document.getElementById("{paneName}pane").innerHTML=xmlhttp.responseText;} |
| ferencd@0 | 12 } |
| ferencd@0 | 13 xmlhttp.open("GET","{url}?pane={paneName}", true); |
| ferencd@0 | 14 xmlhttp.send(); |
| ferencd@0 | 15 } |
| ferencd@0 | 16 </script> |
