-
Cross-browser handling of Ajax requests
posted in JavaScript on 2014-02-23 ops xhr function data request var headers return callback ops method -
This blog post is part of series about AbsurdJS. I'll continue filling the library with small and self organized black boxes. In the last article we talked about creating a JavaScript router. This time we will go through the process of making Ajax requests.
read more
-
A modern JavaScript router in 100 lines
posted in JavaScript on 2014-02-21 router javascript navigo match history node -
(The router here is now placed in its own project - Navigo. There is also another article Deep dive into client-side routing which you may find interesting)
Nowadays the popular single page applications are everywhere. Having such application means that you need a solid routing mechanism. Frameworks like Emberjs are truly build on top of a Router class. I'm still not sure that this is a concept which I like, but I'm absolutely sure that AbsurdJS should have a build-in Router. And, as with everything in this little library, it should be small, simple class. Let's see how such a module may look like.
read more
-
Simple, good looking separator made with pure CSS
posted in CSS3 on 2014-02-12 jsbin translate 95px 12px transform translate 95px line small link top solid 1px border top solid block border top display block border content display block -
I'm currently working on the official site of AbsurdJS. There are a lot of code samples out there and I wanted to present them in JSBins.
read more
-
THE GAP by Ira Glass
posted in Cinema on 2014-02-07 ira glass gap -
"I made it for myself and for anybody who is in doubt with his/her creative career. I also think that Ira Glass' message isn't only limited to the creative industry. It can be applied to everyone who starts out in a new environment and is willing to improve."
read more
-
Revealing the magic: How to properly convert HTML string to a DOM element
posted in JavaScript on 2014-01-23 wrapmap table tr element tbody var html td div map -
This seems like a trivial task. However, it is not. There are few popular solutions, but they have a big problem and if you use them a lot you will spot the issue.
read more
-
Using Node.js to rename set of images
posted in Nodejs on 2014-01-22 file processed path glob files fs require -
Today I had to rename a bunch of image files to the same names, but in lower case. Here is how I did it.
read more
-
SASS and Gruntjs (Node.js setting up)
posted in Nodejs on 2014-01-14 grunt sass compass css add based gruntjs grunt contrib compass -
I'm writing a lot of JavaScript these days. Even if the project is not Node.js based I'm using it for processing some tasks. At the moment most of my projects use GruntJS. Today I spend some time adding SASS to my workflow.
read more
-
Dependency injection in JavaScript
posted in JavaScript on 2014-01-06 function var dependencies router service scope arguments deps dosomething -
I like the quote that the programming is all about managing complexity. Maybe you've heard that the computer world is a giant construction of abstractions. We simply wrap things and produce new tools over and over again. Just think for a minute. The languages which you use have build-in functionalities and they are probably abstracted functions of other low level operations. It's the same with JavaScript.
read more
-
Flash CS5 is not working
posted in ActionScript on 2013-12-19 flash cs5 problem -
That's one of those blog post which I'm using as documentation. When I find a bug and I fix it I feel that I have to write the whole process somewhere, because if I meet the same problem in the future I'll really want to save some time. Today I open my Flash CS5 and apparently I can't paint on the stage.
read more
-
7 lines JavaScript library for calling asynchronous functions
posted in JavaScript on 2013-12-12 function var funcs callback scope queue function funcs var queue function array -
I was surprised by the good feedback for JavaScript template engine in just 20 lines and decided to blog for another small utility function which I'm using often. While we are talking about JavaScript in the browser, most of the operations are asynchronous. We are dealing with callbacks all the time and sometimes we end up with awesome callback hell.
read more