Here are example codes showing how to make a basic GET and POST request using XMLHttpRequest object GET Request using XMLHttpRequest Here is an example which works on all devices and browsers var request; if(window.XMLHttpRequest) { request = new XMLHttpRequest(); } else if(window.ActiveXObject) { try { request = new ActiveXObject(’Msxml2.XMLHTTP’); […]
Drag and Drop Page Builders make it easy to build responsive grid-based page content that adapts to mobile devices. It’s a whole new way of content creation that’ll help you create your home, contact, about us or any other page where a linear layout won’t convey your message. There are many advanced page builders such […]
AJAX websites tend to be much faster as it’s about updating parts of a web page, without reloading the whole page. AJAX lets web pages to update asynchronously by retrieving data from server behind the scenes. This means that it is possible to update parts of a web page, without reloading the whole page. But […]
WordPress provides two editors for editing post content i.e., visual and HTML editor. To make any one of them default you need to use the wp_default_editor filter. Here is example code to make Visual editor as the default editor <?php add_filter("wp_default_editor", create_function(", "return "tinymce";"));
WordPress provides two editors for editing post content i.e., visual and HTML editor. To make any one of them default you need to use the wp_default_editor filter. Here is example code to make HTML editor as the default editor <?php add_filter("wp_default_editor", create_function(", "return "html";"));
This post is a part 50 of Intel XDK Complete Tutorial post series. In this tutorial we will see how to build a cross-platform mobile app using Intel XDK platform and Ionic framework. Intel XDK is the best platform for building and testing cordova apps whereas Ionic is the only best AngularJS based front-end UI […]
This post is a part 5 of HTTP/2 Complete Tutorial post series. HTTP/1.1 is a old protocol that is being used in modern websites which are very different from the websites of the time HTTP/1.1 was introduced. Therefore a new protocol was required to make the web faster so HTTP/2 was introduced. As WordPress is […]
The register_setting function saves the value attribute on form submission directly into the database. We can also alter or validate the value based on our choice. The register_setting function takes a third argument which is a callback, this callback is fired before it saves the settings into the database. For uploading files through settings pages […]
Validation and Sanitization are two terms are often confused and/or misused by beginning developers. So what is the difference between sanitization and validation? Well let’s start with validation, as it happens before sanitization. Simply put, validation is verifying that the data being submitted conforms to a rule or set of rules you (the developer) set […]
Most Commented