Changeset 192
- Timestamp:
- Mar 3, 2014, 6:18:00 PM (11 years ago)
- Location:
- trunk/admin/modules/Elezioni
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_associazioni.php
r189 r192 82 82 echo "</script>\n"; 83 83 84 echo "<script type=\"text/javascript\" language=\"JavaScript\" >\n\n<!--\n" 85 ."//-->\n"; 86 echo "function showdate(str,posiz,tempo)\n"; 87 echo "{\n"; 88 echo "if (str==\"\")\n"; 89 echo " {\n"; 90 echo " document.getElementById(posiz).innerHTML=\"\";\n"; 91 echo " return;\n"; 92 echo " }\n"; 93 echo "if (window.XMLHttpRequest)\n"; 94 echo " {// code for IE7+, Firefox, Chrome, Opera, Safari\n"; 95 echo " xmlhttp=new XMLHttpRequest();\n"; 96 echo " }\n"; 97 echo "else\n"; 98 echo " {// code for IE6, IE5\n"; 99 echo " xmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");\n"; 100 echo " }\n"; 101 echo "xmlhttp.onreadystatechange=function()\n"; 102 echo " {\n"; 103 echo " if (xmlhttp.readyState==4 && xmlhttp.status==200 && posiz!=null)\n"; 104 echo " {\n"; 105 echo " document.getElementById(posiz).innerHTML=xmlhttp.responseText;\n"; 106 echo " }\n"; 107 echo " }\n"; 108 echo "xmlhttp.open(\"GET\",str,true);\n"; 109 echo "xmlhttp.send();\n"; 110 111 echo "}\n"; 112 echo "</script>\n"; 84 113 85 114 ######################### -
trunk/admin/modules/Elezioni/funzionidata.php
r189 r192 108 108 } 109 109 110 ?>111 110 112 <script type="text/javascript" language="JavaScript" >113 function showdate(str,posiz,tempo)114 {115 if (str=="")116 {117 document.getElementById(posiz).innerHTML="";118 return;119 }120 if (window.XMLHttpRequest)121 {// code for IE7+, Firefox, Chrome, Opera, Safari122 xmlhttp=new XMLHttpRequest();123 }124 else125 {// code for IE6, IE5126 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");127 }128 xmlhttp.onreadystatechange=function()129 {130 if (xmlhttp.readyState==4 && xmlhttp.status==200 && posiz!=null)131 {132 document.getElementById(posiz).innerHTML=xmlhttp.responseText;133 }134 }135 xmlhttp.open("GET",str,true);136 xmlhttp.send();137 111 138 } 139 </script> 140 <?php 112 141 113 ######################################### 142 114
Note:
See TracChangeset
for help on using the changeset viewer.