It’s always good to use great tools, but you need to make sure that you use them correctly, not just trying to code “just for it to work”. For this reason I decided to write down my usual list of things I mention when taking over some legacy project or just consulting someone how [...]
Posts tagged ‘JavaScript’
Zend Framework tips and tricks
Debugging with FirePHP and Firebug
One may debug his application with print(”) statements all other the place or alert(”) for JavaScript. Luckily some years ago Firebug extension for Firefox was introduced, which introduced (?) console. Console works absolutely the same as in Linux and can be used not only to execute commands, but receive information from various sources.
To start with, [...]
Using AJAX with onSubmit event in jQuery
Last week I was working on one task, which required me to check data with AJAX when form is being submitted. Users clicks the button, request is made, data arrives, some hidden fields are modified, actual submit happens. The problem I ran into is, how to control form submission and ensure that it’s submitted only [...]
JSON – perfect data exchange format for AJAX
If you are using library such as jQuery, it supports AJAX responses in very different formats. For example, jQuery.get supports “xml”, “html”, “script”, “json”, “jsonp” and “text”. Which to choose?
Let’s say we have these variables, which we want to pass to JavaScript:
$array = array(
’status’ => ‘OK’,
‘message’ => ‘My status message’,
‘additional’ => array(1, 2, 3, [...]
E-commerce sales tracking with Google Analytics
Google Analytics is default choice for visitors tracking, but it can be also used for sales statistics. I have been working with e-commerce projects for a while, and have implemented very powerful back-end statistics tools, but I always try to search for easier to use (and functional enough) tools. Today I’m going to talk about [...]
Deep zoom with Microsoft SeaDragon
Seadragon is technology, which allows you to create applications capable of displaying unlimited size images in users (small) display. It works similar to Google Maps, where you move (zoom) closer and closer to the ground and see more and more details. When I first saw it (video available here) I couldn’t believe my yes – how [...]
Spam-safe email links
There are thousands of ways to protect your email from being read by a spam bot. Complex ones uses images or Flash to display email as graphics, other uses JavaScript to dynamically create email anchors. I always try to use simple and still powerful methods, which both work as expected and are easy to implement, [...]







