Posts tagged ‘jquery’

Zend Framework tips and tricks

January 29th, 2010

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 [...]

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 [...]

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, [...]

I find more more articles about NetBeans 6.5 IDE for PHP, for example this Mike’s article. Why people like it so much? After some weeks spent reading all these articles, I finally decided to throw away all other editors and try new-and-shiny NetBeans.
Initial configuration (keyboard shortcuts, SVN config, project setup, etc.) took only 5 min [...]

In some situations, you need Checkbox and Radio elements functionality merged together. For example, imagine available discounts list where user can pick only one, but can pick none, because maybe he wants to use it later (lets say discounts are one-time). How would you do it in HTML?
Yesterday I was working with same problem and [...]