Category Archives

Archive of posts published in the category: Javascript

Spring Boot File Upload Asynchronously

Here is a quick cheat sheet on performing a File Upload either via a REST call or via traditional Spring MVC.  This is based on Spring Boot 1.5. First make sure your @Controller or @RestController class has a method such as this: @PostMapping(value…

Stream a PDF from a Javascript Async/Ajax Call in your browser

Have you ever come across a situation where you want to make an asynchronous call from your client (ie a browser) to the server, where the server returns an array of Base64 encoded bytes but you need to automatically send the PDF to…

Building Fabric.js on your Linux Machine

I had a hard time getting a build working on my Linux Mint OS so I thought I would document some steps that may assist you when trying to build your own code base for Fabric.js # update node, use the more current…

Spring Boot – IntelliJ IDEA Not Reloading Static Content

Seems the latest version as of November 20, 2015 of IntelliJ IDEA does not come equipped to reload Spring Boot static content on the fly such as HTML and Javascript files.  After much digging around and some help from a buddy of mine,…

Dealing with AngularJS and Form Checkboxes

Went a bit nuts today trying to research how Angular could deal with checkboxes from an HTML form.  Everywhere I was reading, it seems that Angular only allows one ng-model per checkbox, but my list was dynamic, meaning the ng-model expression would be…

Handling Custom Events in AngularJS

I downloaded this pretty cool simple UI widget that allows me to select a color from a nice color palette.  In my continuing effort to learn Angular, I decided to open the code on GitHub and see how the events were being handled.…

Closures and Angular JS

Something I learned along my Angular journey, and Javascript in general, was the concept of closures.  I really didn’t quite get it, to be honest.  I would leave it, move on and everything worked, so when I had no need to “really use…

Duplicate execution of Angular JS Controllers

Have you create some controller code in Angular that you are trying to test out only to find out the controller is being executed more than once, typically twice? If so, you are not alone and this is a very common design problem…

Understanding Angular ngOptions using form select

This is the first of many posts to come that may help you understand how to use AngularJS libraries and syntax.  This is a work in progress, part of the purpose of this blog is for me to document what I learn, share…

Send Binary data to the browser via Async and Javascript

Have you ever had a situation where you are possibly generating a PDF from the server side via async technologies like jquery or Angular and you want to push that binary data right to the browser as to mimic a download of a file?…

Categories