Trang chủ / Lưu trữ
Tag: javascript
-
XMLHttpRequest with Async Ajax Call
[js] var client = new XMLHttpRequest(); var URL=’/Home/Index’; client.open(‘POST’,URL, true); // parameters for Open (method:string , url:string , async?:boolean , user?:string,password?:string) client.setRequestHeader(“Content-Type”, “application/x-www-form-urlencoded”); client.setRequestHeader(“dataType”, “html”);…