All Posts > JavaScript

JavaScript

Migrating a Wordpress Powered Site to GatsbyJS

January 11th, 2018

We walk through our experiences migrating a fairly large WordPress-hosted application to an entirely different model with statically built code via GatsbyJS + ReactJS

Dustin Schau, Ben Hejkal, Jake Partusch, Emily Stinger
JavaScript

Build your svg on the server using Swagger, Node, Express

November 30th, 2017

Recently, I had the need to share an svg chart between a javascript (React) app, an android app, and an iOS app. One option would be to write code in all three application to generate the chart, but a better option is to push the generation of the…

Scott Bock
JavaScript

Taming Redux with Sagas

November 20th, 2017

Use redux-saga and redux-saga test plan to simplify your Redux-based React application with shiny new JS Generators.

Mike Plummer
JavaScript

CSS in JS: Benefits, Drawbacks, and Tooling

November 3rd, 2017

An all-encompassing overview of why CSS in JS exists, what problems it attempts to solve, real-world usage of various solutions, and finally some drawbacks of CSS in JS.

Dustin Schau
JavaScript

GraphQL in Spring Boot (Take Two)

October 31st, 2017

GraphQL in Spring Boot (Take Two)

Matt Schroeder
JavaScript

Angular, React, or Vue JS: Which one is for me?

July 25th, 2017

Angular, React, or Vue JS: Which one is for me?

Mike Plummer
JavaScript

Creating a static blog with Gatsby

July 19th, 2017

Gatsby is an incredible static site generator that renders to static HTML from React content. In this tutorial, well build a sample blog powered by Gatsby

Dustin Schau
JavaScript

Getting Started With Amazon Alexa Development

July 13th, 2017

Learn the basic components of an Amazon Alexa skill, starting with the vocal interface design and progressing through the software development life cycle.

Object Partners
JavaScript

Designing APIs with Apiary & API Blueprint

June 23rd, 2017

Spending time and effort to design and build user-friendly APIs is no longer a “nice to have”. APIs should be embraced as a product in their own right.

Matt Schroeder
JavaScript

Getting started with Vuex

June 9th, 2017

Get up and going with the simple, centralized state management lib called Vuex.

Corey Webster
JavaScript

Two-way Data Binding in ReactJS - Part III

April 28th, 2017

In Part III of the series we explore how to tackle variable-length arrays, even if those arrays appear in nested objects within a components state.

Abraham Serafino
JavaScript

Two-way Data Binding in ReactJS - Part II

April 26th, 2017

In this post we explain how to use lodash to access nested object properties on a components state object so they can be bound to JSX form elements.

Abraham Serafino
JavaScript

Two-way Data Binding in ReactJS - Part I

April 24th, 2017

Part I of a series on two-way data binding in ReactJS. Describes how to take advantage of JSX dynamic attributes to implement rudimentary data binding.

Abraham Serafino
JavaScript

Ahead of Time Compilation with Angular

April 14th, 2017

Pre-compiling your Angular code can significantly reduce bundle size and improve performance. In this article we will review an example app to see it in action.

Mike Plummer
JavaScript

How to install and use Headless Chrome on OSX

April 13th, 2017

EDIT: Headless Chrome is shipping in Chrome 59 so the need to use the full Canary path will eventually go away. You can check your Chrome version in the menu under Help > About Google Chrome. This walkthrough shows you how to get headless Chrome up…

Jim Cummins
JavaScript

Migrating from Cordova to React Native

March 13th, 2017

Cordova and React Native are JavaScript based frameworks for building cross-platform mobile apps. They differ greatly in their approach, with Cordova being embedded web view centric, and React Native being native centric. React Native is just one of…

Object Partners
JavaScript

Adding a Windows Universal Version to your Existing React Native App in VirtualBox

February 15th, 2017

Add the Universal Windows Platform to your existing React Native app, using a Windows 10 VM in VirtualBox, and the React Native Windows plugin

Object Partners
JavaScript

Create a Universal Windows App with React Native in VirtualBox

January 27th, 2017

Start developing Universal Windows apps with React Native, using a Windows 10 VM in VirtualBox, with the React Native Windows plugin

Object Partners
JavaScript

Synchronizing Rest Service Schemas

January 25th, 2017

Synchronizing Rest Service Schemas

Mike Plummer
JavaScript

Faster Development with Webpack HMR, Angular 2, and Redux

December 28th, 2016

Describes how to take advantage of Webpack hot module replacement (HMR) in an Angular 2 app, with Redux.

Object Partners
JavaScript

Node.js Framework Comparison: Express.js vs Hapi.js

December 22nd, 2016

Exploring the differences between the Express.js and Hapi.js Node frameworks, considering strengths and weaknesses of each.

Object Partners
JavaScript

Adding Logging and Swagger to a Hapi Node Server

November 16th, 2016

Adding Logging and Swagger to a Hapi Node Server

Chris Ward
JavaScript

Creating a Node server with Hapi and Joi

October 11th, 2016

Intro to creating a node server using Hapi instead of express. We will then look at validation use the Joi library.

Chris Ward
JavaScript

Getting started with VueJS

September 29th, 2016

VueJS is a hot contender with ReactJS, but includes most of that stuff you loved about Angular and less of the stuff you didnt.

Corey Webster
JavaScript

Using the Canvas API in Angular2

September 22nd, 2016

Describes a technique for using the Canvas API in an Angular2 Component.

Object Partners
JavaScript

Migrating from Cordova to React Native

September 8th, 2016

Strategies, tips, and gotchas for migrating a cross-platform mobile app from Cordova to React Native

Object Partners
JavaScript

Taking a Native-Centric Approach to Hybrid Mobile App Development

September 1st, 2016

Exploring Cordova/PhoneGap, React Native, and NativeScript for hybrid/cross platform mobile development with JavaScript

Torey Lomenda
JavaScript

A Guide To Learning Angular 2

August 25th, 2016

List and reviews of books, tutorials, and other resources helpful for learning Angular 2 and related concepts.

Object Partners
JavaScript

How to Not Be Afraid of Transitive Dependencies in npm

August 2nd, 2016

Solutions for locking down dependencies in npm. Learn to trust your dependencies and update/deploy without fear.

Nathan Smith
JavaScript

Getting Started with Angular Universal

July 21st, 2016

Overview Angular Universal builds on  Angular ’s widespread adoption and support to provide server-side rendering and faster perceived performance to Angular applications. By pre-rendering an application at build time, or re-rendering at run time…

Jake Partusch
JavaScript

Guide to Creating Native Mobile Apps with Ionic2

July 19th, 2016

A guide to install/build/run/publish an Ionic2 application. This documents any gaps in existing guides. Publish a hobby web app to the app store in no time!

Jeff Sheets
JavaScript

Using Bundled Webpack Instance with Gradle

April 22nd, 2016

Using Bundled Webpack Instance with Gradle

Jeff Torson
JavaScript

Using Self Contained Node.js and npm instances with Gradle

April 14th, 2016

Use locally installed node.js and npm instances with gradle

Jeff Torson
JavaScript

We want you to be MEAN ! (Part 2)

January 15th, 2016

In this second installment on the MEAN stack, we are going to complete an integration between a service layer module written in NodeJS, and MongoDB as our document persistence.

Larry Schoenfeld
JavaScript

We want you to be MEAN !

January 14th, 2016

This blog assumes you are new to MEAN, and would like to install the components, and build your first MEAN application.

Larry Schoenfeld
JavaScript

Tutorial: Creating an Angular 2.0 Todo App

December 15th, 2015

Introduction With Angular 2.0 right around the corner, big changes are in store. If you would like to understand the differences between Angular 1 and Angular 2 check out this blog post ! For the past few years, building a Todo Application has been…

Jake Partusch
JavaScript

Comparing React.js performance vs. native DOM

November 19th, 2015

React.js is a promising new library for Javascript view component development. I will be comparing performance of Reacts virtual DOM rendering approach against native DOM manipulation in Javascript.

Object Partners
JavaScript

Relational data management with Lovefield

October 8th, 2015

Relational data management with Lovefield

Mike Plummer
JavaScript

Angular 2 vs Angular 1

September 24th, 2015

Angular 2 vs Angular 1

Jake Partusch
JavaScript

Spring Web Flow and jQuery Caching

September 8th, 2015

Solution to Spring Web Flow throwing parsing errors on jQuerys default request parameter for bypassing browser request caching.

Rob Boler
JavaScript

Client-side geospatial analysis with TurfJS

July 30th, 2015

Client-side geospatial analysis with TurfJS

Mike Plummer
JavaScript

ReactJS Workshop, August 20, Chicago

July 13th, 2015

Join us at Serendipity Labs in Chicago on August 20th for a 1 day ReactJS Workshop. The workshop is led by Object Partners Consultants that have been building JavaScript applications for years and love working with the latest and greatest front-end…

Object Partners
JavaScript

WebSockets in Grails 3.0

June 10th, 2015

WebSockets are a long-lived, interactive, two-way channel between a client browser and end server that allows ongoing communication without polling.

Mike Plummer
JavaScript

A server-side guy interacts with React

May 21st, 2015

A tour of how ReactJS works with plenty of examples.

Mike Hostetler
JavaScript

Using Gradle and Bower to Manage JS/CSS Dependencies

April 29th, 2015

A method of integrating bower into Gradle to manage JavaScript and CSS dependencies without maintaining copies in the source tree.

Patrick Double
JavaScript

Nebraska.Code() Conf Recap: Functional style!

March 26th, 2015

This past weekend, I was able to attend and present at the 2015  Nebraska.Code() Conference in Lincoln, along with a few other Object Partners developers. With roughly 500 in attendance from presenters, to attendees, to sponsors, the conference had…

Jeff Sheets
JavaScript

Add Javascript unit tests and run them with grails test-app

August 19th, 2014

With frameworks like Jasmine, Karma, and Grails, we can write Javascript tests and run them with grails test-app.

Igor Shults
JavaScript

Pooling Web Service Connections in Grails

June 11th, 2014

Using Apache Commons Pool from Groovy and Grails is an easy to use tool to configure an object pool on the JVM, especially for reusing expensive to create JAX-WS Web Service connections.

Jeff Sheets
JavaScript

Extending Angulars $resource Service for a Consistent API

June 3rd, 2014

Extending Angulars $resource service to make it easy to declare resources and REST APIs. Wrapping the $resource service to normalize the REST calls to make it easier to work with promises and the $q service.

Object Partners
JavaScript

Unit test your server-side JavaScript with Spock

May 29th, 2014

Learn how to use Spock, the powerful Groovy-based specification framework, to unit test your server-side JavaScript with style.

David Norton
JavaScript

Enterprise Mobile – More Than iOS vs Android

April 1st, 2014

Android vs iOS is the wrong question. Our job as mobile consultants is to solve a business problem and use that solution to bring value to the client.

Charlie Horning
JavaScript

Running a Lightweight Static Server with Grunt

February 26th, 2014

Running a Lightweight Static Server with Grunt

Object Partners
JavaScript

Groovy convenience in JavaScript with Lo-Dash

February 7th, 2014

Discover the JavaScript equivalents of Groovy helper methods in the Lo-Dash library

Object Partners
JavaScript

Resolving browser-specific issues using the Grails Resources plugin

November 21st, 2013

Internet Explorer caps the number of CSS rules in a file, while Chrome throws a 404 on missing source maps. Customizing the Grails Resources plugin can help.

Igor Shults
JavaScript

Building Avatar Applications with Gradle

November 5th, 2013

Project Avatar is a Web Framework for Java EE 7 and JDK 8 that runs under Glassfish. This post discusses how to build Avatar applications with Gradle.

Object Partners
JavaScript

Presentation: Front End Tools for Modern Web Apps

October 10th, 2013

Presentation Abstract: Application development on the web has drastically evolved over the last 15 years. Today web applications are often expected to act like natives apps, are JavaScript heavy, and need to work across mobile, tablet and desktop…

Object Partners
JavaScript

Extending the jQuery prototype to access Bootstrap components

October 2nd, 2013

Easily accessing the HTML and objects of Bootstrap components by extending the jQuery prototype.

Igor Shults
JavaScript

Using Services and Messages to Share Data Between Controllers in AngularJS

August 21st, 2013

Using Services and Messages to Share Data Between Controller in AngularJS

Object Partners
JavaScript

Visualizing Data with D3 Part 1 -- The Basics

August 15th, 2013

Looking at the basic concepts of using D3 to manipulate the DOM.

Object Partners
JavaScript

Angular.js - create reusable HTML widgets with directives

August 13th, 2013

The Angular.js JavaScript MVC framework has a powerful directive mechanism that can be used to create reusable HTML widgets.

Object Partners
JavaScript

I Wish I Knew Then What I Know Now -- Life With AngularJS

August 9th, 2013

A list of things that I wish were clearer to me when I started working with AngularJS

Object Partners
JavaScript

Why Does Web Development Take So Long?

May 6th, 2013

Information technology is moving faster all the time. But, if information technology is progressing rapidly, Why does it takes so long to do web development? How do intelligent technologists solve these problems? Share this infographic: http://www…

Object Partners
JavaScript

Multi-Browser JavaScript Unit Testing with Sauce

April 18th, 2013

Sauce, which provides Remove WebDriver Browsers as a Service, or RWDBaaS. I may have just made up that acronym, but I am not making up this service. Its a great way to run automated Selenium-based tests against a large number of browsers. But automated cross-browser unit tests? Well, thats just one step removed and I would like to show you that.

David Norton
JavaScript

Improving the GWT Async Callback

April 4th, 2013

Tired of boiler-plate code in GWT, wrapping your AsyncCallback interfaces can reduce that code; at least for AJAX calls.

Neil Buesing
JavaScript

Implementing Social Icons

December 11th, 2012

Visit nearly any website these days and there will be one or more groups of social icons inviting visitors to share the site or page with a social network or to follow the sites related page or feed on a social network.

Object Partners
JavaScript

Open jQuery prettyPhoto API to an image other than the first one

November 28th, 2012

prettyPhoto is neat little jQuery plugin, that makes it easy to do lightbox style image (or videos, flash, YouTube, iframes and ajax) overlays on your page. The API documentation doesnt is sparse, but there is a way to open a list of images with an image other than your first one displayed.

Scott Bock
JavaScript

Use JQuery Mobile’s Tools Suite to help you debug and improve your JQuery Mobile application

November 2nd, 2012

JQuery Mobile provides tools to help you gain insight and understanding into global configuration values, page events, and page change timings in your app.

Object Partners
JavaScript

An approach to processing dynamic one-to-many forms with Grails 2.1

October 4th, 2012

An example of processing forms containing both parent and child objects (one-to-many relationship) in Grails 2.

Object Partners
JavaScript

Using CometDs hidden subscribeProps

September 27th, 2012

ConetD, a bayeux implementation, has a poorly documented feature that allows you to send information along with a subscription request: subscribeProps

Scott Bock
JavaScript

Embrace JavaScript Frameworks

September 12th, 2012

When developing web applications, its very common for a confusing blend of JavaScript and framework code to make its way into the code.

Object Partners
JavaScript

Rendering JSP Versus Static HTML Completed With AJAX

September 4th, 2012

Intelligent and careful use of JavaScript can enhance the user experience by providing not only the client-side functionality, but by completing the content.

Object Partners
JavaScript

Ternary Operations in JSTL

August 23rd, 2012

An often overlooked operator, in JavaScript (and elsewhere), is the ternary operator.

Object Partners
JavaScript

Easy Inter-window Communications with jQuery

July 31st, 2012

It may happen that you need to open a second browser window to help your web application perform some additional action that you dont want to leave your current page to do.

Object Partners
JavaScript

Dynamic HTML Entities in Form Inputs

July 10th, 2012

Theres a little trouble putting JavaScript variable values into HTML form elements when those values contain HTML encoded characters. Heres a simple solution to that problem.

Object Partners
JavaScript

JQuery UI Datepicker IE focus fix

June 18th, 2012

Using event handlers in Jquery UI Datepicker to return focus to the input field after date selection, while handling a quirk in IE that would reload the calendar window.

Jeff Sheets
JavaScript

Manipulating HTML with Java and jsoup

February 14th, 2012

Manipulating HTML with Java and jsoup

Brendon Anderson
JavaScript

SplitView for JQuery Mobile

December 22nd, 2011

JQuery Mobile SplitView plugin brings the powers of the Split-View interface to mobile web applications.

Object Partners
JavaScript

Configuring Eclipse to support WTP for Maven web projects

December 15th, 2011

Step-by-step guide to a simple way to configure Eclipse WTP for Maven web app projects

Object Partners
JavaScript

textentered.js - a simple throttling mechanism for text fields

December 13th, 2011

A simple jQuery plugin to fire an event when a user finishes entering text in a text field.

Object Partners
JavaScript

An Introduction to Node.js

August 23rd, 2011

Node.js is an evented I/O server built on Google’s V8 JavaScript engine. Node provides a simple way to build highly scalable server applications. This article will provide an introduction to Node along with installation details and a first server.

Object Partners
JavaScript

Scaling with Single Threading

August 9th, 2011

To scale applications, developers usually turn to multiple threads. This post discusses the use of single threading as an alternative.

Object Partners
JavaScript

Google Analytics Page Tracking in Grails Web Flow

June 7th, 2011

How to track Grails web flow (or other dynamic) pages with Google Analytics.

Object Partners
JavaScript

Yes, this is a blog post about browser clicks.

June 3rd, 2011

With a fixed footer (using CSS position:fixed), you might make content invisible to your users. A workaround devolves into a discussion of the click event.

Object Partners
JavaScript

Keeping it Clean: Making Good Use of the YUI3 Global Object and Loader

May 19th, 2011

How to use the YUI3 global object instance and loader to help manage your custom modules and keep your code organized and optimized for reuse.

Object Partners
JavaScript

Component UI Development with Apache Wicket

May 5th, 2011

Apache Wicket is a component based framework for web development which uses convention over configuration.

Object Partners
JavaScript

Leveraging Apache CXF and Maven to Generate Client Side Web Service Bindings

November 25th, 2010

The purpose of this article is to explain how to leverage Apache CXF and Maven to quickly generate client side web service bindings, and to detail a simple framework implemented on top of the generated classes to allow quick configuration of the client bindings at run time. In order illustrate thoroughly, a fictitious WSDL will be leveraged as a starting point.

Object Partners
JavaScript

Highlights of HTML5

July 20th, 2010

The HTML5 specification has been in the works for several years and is getting close to reaching completion. This article gives a quick overview of what to look forward to when HTML5 is officially completed.

Object Partners
JavaScript

Potential Gotcha When Upgrading Spring MVC

January 11th, 2010

Bizarre JavaScript errors surfaced after upgrading Spring and Spring MVC. Heres what we found.

Eric Foster-Johnson
JavaScript

Twitter-like Load More Button

October 20th, 2009

Here is a good example code for twitter like load more button in both jQuery and MooTools: http://net.tutsplus.com/tutorials/javascript-ajax/create-a-twitter-like-load-more-widget/ I’ve tried MooTools version and worked fairly well (For IE, you need…

Object Partners
JavaScript

Floating DIVs are tricky

August 24th, 2009

A page layout using DIV’s are much more flexible than a table layout. However, I often went back to using tables because it seemed more stable across different browsers. After spending some time researching how to use DIV’s effectively, I came up…

Object Partners
JavaScript

Short Tips for Creating Mobile Web Content

August 5th, 2009

As smart mobile phones such as the iPhone or the Palm Pre offer a better Web-browsing experience, it becomes easier to offer access to enterprise Web applications from these devices. Designing Web content for mobile devices isn’t that much different…

Eric Foster-Johnson
JavaScript

Facebook like input field and more

July 8th, 2009

I recently came across this great JavaScript library called TextboxList by Guillermo Rauch which will convert good old input fields into Facebook like input fields. Even though there are tons of JavaScript libraries out there, it is very hard to…

Object Partners
JavaScript

Easy JavaScript Unit Test Integration

June 17th, 2009

At my current client I’ve been building a rather complex rich client app using ExtJs. The team has written a lot of JavaScript code, and has been writing a lot of JavaScript unit tests as well. We’ve gone through several unit testing tools along the…

Object Partners
JavaScript

Updated JavaScript Unit Testing Presentation

May 12th, 2009

I gave another presentation today on JavaScript Unit testing tools. This time I’ve advocated the use of HtmlUnit and Screw.Unit in combination. Screw.Unit is a JavaScript testing framework that’s great for unit tests, and HtmlUnit has…

Object Partners
JavaScript

Intro to Building Desktop-Style UIs: JavaScript on Grails

March 25th, 2009

JavaScript is a nice fit on the Grails platform. This demo/presentation provides a side by side comparison of Ext JS and GrailsUI approaches to building feature rich web applications on Grails. Feel free to look at the presentation slides, as well as…

Torey Lomenda
JavaScript

The Yucky Parts of Web Development: Examples

February 27th, 2009

My OPI Tech Talk, on the Yucky Parts of Web Development, is available as a Powerpoint presentation . In the talk, I spoke on how a few techniques can give you a jumpstart for the Web side of your applications. The focus was on using these techniques…

Eric Foster-Johnson
JavaScript

Testing Rich Client Web Applications

February 25th, 2009

An overview of some testing frameworks for full-featured Javascript Libraries JavaScript Testing Presentation Examples: presentation.zip musicmanager.zip Abstract: Making the move from sprinkling simple interactive Ajax controls into basic web…

Object Partners
JavaScript

Screencast: Intro to Grails with RESTful Web Services

February 16th, 2009

This presentation discusses some of the fundamental concepts of Grails and dives into an example that demonstrates how to build RESTful Web Services with Grails. Select the link below to download the full presentation. Intro to Grails with RESTful…

David Reines
JavaScript

CSS Layout Using YUI

February 10th, 2009

Typical Web pages use one or more ways to lay out pages. The most common means are table-based layout and CSS layout. CSS layout means you use CSS styles to place major blocks of your page at certain locations. For example, the footer gets placed at…

Eric Foster-Johnson
JavaScript

The Yucky Parts of Web Development: Mouseovers

February 6th, 2009

In my OPI Tech Talk on Jan 28, 2009 on the Yucky Parts of Web Development, I covered a very simple technique you can use to create mouseover effects for tabular data. If you want to use the small interaction style mentioned in my talk, or if you just…

Eric Foster-Johnson