Get started using web API’s – Luas Forecasting API Part Two

Continuing on from the last post – Get started using web API’s – Luas Forecasting API Part One , there was a slight issue I ran into. This was resolved after several commits where I’d tried to see if I could print out the response regardless of the response status. However those failed and can […]

Get started using web API’s – Luas Forecasting API

My JavaScript excursions have taken a damper as of late. Without much digression, the next mini project I want to tackle is how to consume an api and present it on a page. I’ve been having a bit of internal conflict if I should conduct this on GitHub or codepen and came to the conclusion […]

Javascript functions

JavaScript allows numerous ways in which functions can be created and invoked. Named functions These have a name associated with them function nameOfFuction(){ // code goes here; } Assigned functions These are usually named or anonymous functions which are assigned to a variable var someName = function someFunction() { // code; }; // invoking the […]

Simple JavaScript Timer: Part III

The remaining requirements from the last session are: Refactoring the two buttons to just one for starting/stopping the timer Being able to capture snapshots of the timer countdown on a button press. Clearing the snapshots and resetting the timer on another button press. Refactoring the two buttons to a single one which would handle the […]

JavaScript callback functions

Another primer, this time on callback functions.  Call back functions are basically a function that is passed as an argument, or included wholly as in the case of anonymous functions, in another function’s call. It hails from, wait for it… functional programming. One way of understanding how callbacks function *pardon the pun*, is based on […]

Simple JavaScript Timer: Part II

In the last part, of ‘Simple JavaScript Timer: Part I’, the asynchronous function was running as soon as the page was loaded. A few reasons why I assumed this was happening: Since there were no synchronous calls, there was nothing on the call stack and therefore it just ran Maybe some sort of mechanism was […]

Dynamics CRM – Access GUID from the browser console

Now this blog hasn’t quite morphed from its primordial form and I have yet to declare its mission statement. In a nutshell it is to log and explore all aspects of my  journey through learning JavaScript – its many utilities and facets. One such area is its use in Microsoft Dynamics CRM. So without discussing […]

Accessing JavaScript object properties indirectly

When it comes to accessing data in JavaScript objects there are two methods available dot operator . bracket notation [] Take as a example an object with the following properties: var newObj = { propertyOne: “some string”, propertyTwo: 2, “property Three” : “other string”, 4 : “Four” }; Dot Operator The dot operator is typical […]