forked from thundi3/thairisfree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ajax.js
45 lines (43 loc) · 812 Bytes
/
ajax.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<script type="text/javascript">
//function openct(String)
function openct()
{
var openct;
try
{
// Firefox, Opera 8.0+, Safari
openct=new XMLHttpRequest();
}
catch (e)
{
// Internet Explorer
try
{
openct=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
try
{
openct=new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e)
{
alert("Your browser does not support AJAX!");
return false;
}
}
}
openct.onreadystatechange=function()
{
if(openct.readyState==4)
{
var resultarea = document.getElementById('show');
resultarea.innerHTML = openct.responseText;
}
}
openct.open("GET","createorder2.php",true);
//openct.open("POST","createorder2.php?type="+TYPE,true);
openct.send(null);
}
</script>