Javascript RSS

Follow The Programmer Blog RSS feed to stay up to date with the latest programming tutorials regarding anything Javascript. If you're looking to upgrade your software developer shirt collection we offer some pretty cool programmer shirts. For more of the latest developer news and programming tutorials visit The Programmer Blog. View all programming tutorials tagged with Javascript below:

array, Javascript

JavaScript && Python - Removing a specific element from an array

Removing one or many elements from an array in JavaScript is pretty straightforward. Though with all things programming there is some nuances that you should be aware of and there's a million ways to do it. Let's take a quick look at a few different examples to manipulate elements in JavaScript arrays. How do I remove a specific value from an array...

Read more

async, Javascript

JavaScript - Understanding AJAX calls

For anyone starting out let's explain the exact meaning of "ajax". To start let's understand that "AJAX" means Asynchronous JavaScript And XML. This means we are sending an asynchronous call to the server using JavaScript and returning XML, or JSON in modern programming. The request to an API endpoint (ex. MVC Controller method) will return a JSON or XML object which will...

Read more

cheatsheet, Javascript

JavaScript Cheat Sheet

We have compiled a list of almost all of the JavaScript functions you will ever need! This is a nice guide to keep on hand when digging into web development with Vanilla JavaScript. Check out our Javascript Cheat Sheet below. JavaScript Booleans toSource() valueOf() toString() JavaScript Strings charAt() slice() charCo­deAt() split()  concat() substr() fromCh­arC­ode() substr­ing() indexOf() toLowe­rCase() lastIn­dexOf() toUppe­rCase() length...

Read more

Javascript, JSON, KnockoutJS

KnockoutJS - ko.toJSON copying unwanted properties

When using KnockoutJS and the Knockout Mapping Plugin, you may notice extra properties are being serialized with your viewmodels, ex. "__ko_mapping__" or "copiedProperties" objects. JSON Example: { "MyObject": { "Id": "00000000-0000-0000-0000-000000000000", "Type": 1, "Name": "Default MyObject" }, "__ko_mapping__": { "ignore": [], "include": ["_destroy"], "copy": [], "observe": [], "mappedProperties": { "MyObject.Id": true, "MyObject.Type": true, "MyObject.Name": true }, "copiedProperties": {}, "": {}...

Read more

API, Javascript

JavaScript - Getting query string values

One of the key ingredients to an AJAX driven website is the ability to reliably get query string parameters. We will run through an example using the new URLSearchParams API and also a Javascript only implementation for legacy browsers. Using the URLSearchParams Web API Consider the url Get the query string params var queryParams = new URLSearchParams(; Iterate &...

Read more