Category > Javascript

Manso Trick: Pad a number with leading zeroes in javascript

I was missing a simple and elegant method for padding a number with leading zeroes in javascript. A typical example of leading zeroes is when you want to show the current time and you want the time to be formatted like hh:mm. There is no problem when it’s 12:40, but when is five minutes past […]

Continue reading

, , ,

mansofk: the super mega ultra lightweight js framework

I needed a javascript framework that was able to change the CSS of the elements, that was able to do AJAX requests, able to load external JS and CSS dynamically, able to add or change HTML on the fly, able to handle events, able to do animations and able to avoid collisions with other frameworks […]

Continue reading

, , , , , ,

[SOLVED] Uploadify and session problems

Uploadify is a wonderful plugin for jQuery that allows you to upload several files at once,  it does the uploads transparently  using flash (take a look at the demo on this link). In fact, the great advantage I see is not to be able to upload several files at once, this can be done by […]

Continue reading

, , , ,

Click effect for jQuery

Today I’ve been playing for a while with javascript. The truth is that I haven’t found what I was looking for, but let’s assume that this is because I’m a programmer and not a designer. Anyway, what I was trying to do is to create some kind of click effect. Ok, let me try again. […]

Continue reading

, , ,

jQuery 1.4.1 is out

Some weeks after the release of jQuery 1.4, now the first bug fix release for this fantastic javascript framework is out. The new version fixes several bugs, and includes some improvements. Download jQuery 1.4.1 and have a look at the release notes.

Continue reading


jcontroller: A small and simple controller for javascript

It’s been a long time since the last post, so I’ve though Hey! I’m loosing users, I cannot let that happen, let’s get something from any project I’ve done recently, so I can do a post :p The thing is that I recently noticed that the javascript I’ve been writing lately becomes messy after some […]

Continue reading

, ,

jQuery 1.3.2 is out!

The version 1.3.2 of jQuery is finally out. It solves several bugs and improves the performance in some parts of the code. The list of most important changes are: Elements are now returned in document order. .live() can now prevent bubbling. :visible/:hidden are now significantly faster. As are all the width/height methods. Selectors are much […]

Continue reading

, , ,

Where is the cursor in a input or textarea?

I’ve just found a website with an interesting example forwhere is the cursor and which text is selected (if any) in an input and textarea. The truth is this code is not for daily use, but it’s quite interesting to see the possibilities of javascript (well in fact I was looking for this because I […]

Continue reading

, , , , ,

A couple of ways for detecting Firebug

I think probably all web developers (even some designes) already know Firebug, otherwise it is a must-have tool you can’t miss. Anyway, this post is about detecting if the user has Firebug active, and which version is using. Básically the first technique is just looking if there exists a DIV whose identifier is _firebugConsole, and […]

Continue reading

Get Google PageRank using only javascript (II)

On the previous postr I explained that doing cross-domain requests has a LOT of problems, and even with those problems today I was going to post how to get Google PageRank using only javascript The thing is you cannot get the response once you do a cross-domain request (unless you use some tricks like a […]

Continue reading

, ,

prev posts