{"id":4508,"date":"2015-08-22T09:51:15","date_gmt":"2015-08-22T09:51:15","guid":{"rendered":"http:\/\/a1webdesignteam.com\/blog\/?p=4508"},"modified":"2015-08-22T09:51:15","modified_gmt":"2015-08-22T09:51:15","slug":"the-xmlhttprequest-object","status":"publish","type":"post","link":"https:\/\/a1webdesignteam.com\/blog\/the-xmlhttprequest-object\/","title":{"rendered":"The XMLHttpRequest Object"},"content":{"rendered":"<p>All\u00a0modern\u00a0browsers support the XMLHttpRequest object (IE5 and IE6 use an ActiveXObject).<\/p>\n<p>The XMLHttpRequest object is used to exchange data with a server behind the scenes. This means that it is possible to update parts of a web page, without reloading the whole page.<\/p>\n<h2>Create an XMLHttpRequest Object<\/h2>\n<p>All modern browsers (IE7+, Firefox, Chrome, Safari, and Opera) have a built-in XMLHttpRequest object.<\/p>\n<p>Syntax for creating an XMLHttpRequest object:<\/p>\n<div>\n<div><em>variable<\/em>=new XMLHttpRequest();<\/div>\n<\/div>\n<p>Old versions of Internet Explorer (IE5 and IE6) uses an ActiveX Object:<\/p>\n<div>\n<div><em>variable<\/em>=new ActiveXObject(&#8220;Microsoft.XMLHTTP&#8221;);<\/div>\n<\/div>\n<p>To handle all modern browsers, including IE5 and IE6, check if the browser supports the XMLHttpRequest object. If it does, create an XMLHttpRequest object, if not, create an ActiveXObject:<\/p>\n","protected":false},"excerpt":{"rendered":"<p>All\u00a0modern\u00a0browsers support the XMLHttpRequest object (IE5 and IE6 use an ActiveXObject). The XMLHttpRequest object is used to exchange data with a server behind the scenes. This means that it is possible to update parts of a web page, without reloading the whole page. Create an XMLHttpRequest Object All modern browsers (IE7+, Firefox, Chrome, Safari, and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4509,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0},"categories":[8],"tags":[51],"_links":{"self":[{"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/posts\/4508"}],"collection":[{"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/comments?post=4508"}],"version-history":[{"count":0,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/posts\/4508\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/media\/4509"}],"wp:attachment":[{"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/media?parent=4508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/categories?post=4508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/tags?post=4508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}