Currently browsing: JavaScript

How to use Dropzone.js with PHP to Upload Images Only

  JavaScript

Uploading files using drag and drop has been a norm since 2015. Let’s admit, no one likes to click a couple of buttons just to upload a single image, then go back to the very same page just to upload another one. It’s just a LOT of work. It’s true, back in the days, uploading […]

View post

How to Style JavaScript Alert/Confirm with AlertifyJS

  JavaScript

If you have been writing codes in JavaScript, chances are you’re already familiar with alert function or confirm function. These functions are built mainly for debugging purposes although there are instances that you can use these functions to warn users from doing certain things. For example, you want to alert users that you have new […]

View post

How to Get JSON Data with jQuery | jQuery.getJSON() Method

  JavaScript

There are plenty of ways to load JSON-encoded data. One of the popular ways is by using ajax. But what if Ajax is not working? Is there an alternative? If you are using jQuery, you may use getJSON() method as an alternative for ajax(). What is getJSON? getJSON() is a method in jQuery that fetches […]

View post