Tag Archive > 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

, , ,

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

, ,

Keeping aspect ratio when scaling an image

Scaling an image to keep it under specific bounds, for visualizing purposes is a common task, but it’s even better if we can scale the image without deforming it. In this cases we have to scale the image and keep it’s original aspect ratio. Nowadays there are thousands of libraries for any general purpose language […]

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

, , , , ,

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

, ,

Get Google PageRank using only javascript (I)

Some weeks ago, during christmas, I found this spanish article in tu función about how to get the Google PageRank of any website with PHP (he will be happy with the keywords of the link). The fact is although I knew there would be a lot of cross-domain problems I told myself: “hey! you have […]

Continue reading

, , , ,

prev posts