Category Archives: web development

IE developer tools

Firefox’s OK, what about IE ?

Everybody knows how to debug the front end on Firefox. There are some awsome tools, which help to manage your work. We all use “Web Developer” and the ready to enter the history “Firebug”. Both tools can be downloaded and installed for free, but what about IE and the misterious DOM rendering there.

The DebugBar

One of the two plugins I recommend for IE is IE Developer Toolbar. That plugin perfectly solves the problem of viewing the rendered code from the browser. That helps a lot when debuggin front end, and I mainly use it for that. Download from here.

IE Developer Toolbar

That’s the most famous IE plugin for web developers with no need to be commented. Every web developer with no exception should use it on IE to find the mistery around that browser. Download from here.

JavaScript random numbers

The task is …

to generate a random number between any two interger unsigned numbers. Let’s assume we’ve two numbers ‘a’ and ‘b’, where b > a. (I don’t count the case with b==a, cause it seems to be pretty strange!). The formula should be like that:

Math.random() * (b-a+1) + a

Looks very nice, but why is that?

because simply by using Math.random() * a gives a random between 0 and a-1. With the expresion (b-a+1) gives a random number between 0 and (b-a+1) and than by adding the value of a we’ve the number between a and b.

Remove DOM Element with JQuery

JQuery and DOM

JQuery is one of the most famous JavaScript library online. There are so much articles in the web about it, that I feel useless to describe it again. The good parts of that library is the amazing way it handles the DOM. It is so good at that that I usually use it with other JavaScript libraries.

Now I’m working on a task and one of the main target of the completed task was the RAM usage of the code. It just has about 100 dynamic DOM elements which on every event should be removed form the tree and the RAM should be freed. Continue reading Remove DOM Element with JQuery →

Flex 3 DateChooser UTC issue

What I intend to do

The task can be described as it is. There’s a Flex 3 DateChooser component integrated with a custom timeline component. The problem occurs when exporting the data from the flash to the browser. Than I write the unix timestamp to the url of the browser. Of course I’m using date.getTime() in Flex.

getTime()

Applying getTime() to any object of type Date in Flex results in a unix timestamp with included milliseconds. Of course the server side technology which in our case is PHP should devide by 1000 to remove the milliseconds. Continue reading Flex 3 DateChooser UTC issue →