Blog

Category Filtering: 'jquery'

24
June 2015

Gavin Pickin

Post Conference - Session Review - How do I Write Testable Javascript?

Conferences, Dev.Objective, Javascript, jQuery, Unit Testing

dev.Objective() has come and gone, and like my Cordova Hooks session, I wanted to write a review of the session, and provide some additional information for those who attended, or those who wanted to attend. The conference was a blast, lots of great info, lots of great people, one of my highlights of the year... so many talented people, and whether you are in the sessions, or in the hallways, there is always something to learn. I submitted this session because although there is a lot of great information on testing, sometimes the hardest steps are the first steps, and most people are live and breathe testing, forget the first few steps, and how many stumbling points they ran across from. Hopefully this session will help everyone get started with Javascript testing.

11
March 2015

Gavin Pickin

Windows Store Metro App issues with jQuery Ember Angular - Solved

Angular, Javascript, jQuery, Mobile Development, Techie Gotchas

During my recent adventures with cross platform app development, I have come across a few issues,.. and solved them along the way. I had an old issue just reappear. Since the Windows Platform gives you Javascript API access to some lower level features, there are some additional security you have to deal with, one of those includes Adding Dynamic Content. This of course is a key part of jQuery, Ember, Angular and Knockout, so this by default will make developing apps for the windows store and windows devices troublesome. 
 

26
February 2015

Gavin Pickin

HTML 5 Search Input with jQuery Multi Token Search

Javascript, jQuery

Recently I found myself playing with another HTML 5 form element, the Search Input. Of course the form field support is not there yet… so I decided to use jQuery’s version since I was already using jQuery Mobile on an App. Quite a nice upgrade, it gives you some standard features that you might normally struggle to complete on your own… like the rounded corners, and the cancel/clear search field. Of course webkit goes further with remembering the last x searches, and can even fire a “search” event when a user pauses while typing… but sadly, we have to live in a world where you can’t use all the bells and whistles all at once… but jQuery as usual fills in the important gaps nicely.

11
February 2015

Gavin Pickin

How to Work with WebSQL and Managing Multiple Deferred and Promises

Javascript, jQuery, Techie Gotchas, WebSQL

My last post with WebSQL looked at the difference between sync and async, and how you can use Deferred and Promises. The example I showed was a simple query, so we create a deferred, run the query, when the query is completed, it resolves the deferred… and our $.when is waiting for that to complete to move on. That works great in this simple situation, what if you have to loop through 50 items, and have to update each one, and after all of them have done, you want to query the list and display those updates… how do we do that? Its easier than you think. I searched over several blogs and stack overflow questions, API docs, and got it working. I thought you would love a step by step simple example to solve this problem, so here it is.

11
March 2014

Gavin Pickin

Mobile Development - JSON vs JSONP with Ajax calls and ColdFusion CFC Components

Android, CFML Language, Cordova / Phonegap, IOS, jQuery, Techie Gotchas

I had mentioned that I am getting setup and writing some HTML5 / Javascript / CSS / Phonegap / Cordova Apps, and along with these types of apps, you will start to use Ajax to make server api calls to keep your fresh and up to date. I ran into a hurdle today when making some Cross Site Ajax calls, and decided I would share my findings.

First, you might ask, if I'm making a native app, why are you worrying about Cross Site Ajax calls? And you would be correct, with the app deployed on a Android or IOS device, those Cross Site Scripting issues do not exist. I decided I wanted to develop my apps to be deployed on our dev servers during development and testing, and wanted them to work as well as they could (obviously certain device api's would not be available), so I wanted to look into using JSONP to solve my cross site scripting issues. Using json a lot, and with most of my sites calling the same server for api calls, I have heard of JSONP, but not actually implemented it myself… so here goes.

Blog Search