var HTTPCtrl =
{
getHTTP: function()
{
var xmlhttp = null;
if(window.XMLHttpRequest)
{
xmlhttp = new XMLHttpRequest();
}
else
{
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
return xmlhttp;
}
};
var client = HTTPCtrl.getHTTP();
client.open('get', '12-1_XMLHttpRequestExam.jsp', true);
client.send()
반응형
'Programming > JavaScript' 카테고리의 다른 글
[javaScript] 12-2_getResult.js (0) | 2016.12.09 |
---|---|
[JavaScript] 12-1_XMLHttpRequestExam.jsp (0) | 2016.12.09 |
[JavaScript] 12-0_XMLHttpRequest.html (0) | 2016.12.09 |
[JavaScript] 11-3_KeyboardEvent.js (0) | 2016.12.08 |
[JavaScript] 11-2_MouseEvent.js (0) | 2016.12.08 |