A web developer's blog. PHP, MySQL, CakePHP, Zend Framework, Wordpress, Code Igniter, Django, Python, CSS, Javascript, jQuery, Knockout.js, and other web development topics.

Monthly Archives: March 2008

The 6 Most Important CSS You Need To Know

Everyone should read this.

Posted in General | Tagged | Leave a comment

Get name of textarea or input using jQuery

You can do this in jQuery: $("textarea[@name=my_field_name]").val();$("input[@name=my_field_name]").val() Update, the @ is now deprecated. I remember using VisualjQuery and the filters do not have an @… $("textarea[name=my_field_name]").val(); Thanks to Simon…

Posted in General | Tagged , | 4 Comments

Check Multiple Checkboxes in one click using jQuery

This is useful if you want to “delete” or “update” multiple rows in a table at the same time. This works like the “Check All Email” in YahooMail. $(document).ready(function() { //check all checkboxes $("#check_all_boxes").click(function() { $(".mycheckbox").each(function(i){ $(this).attr("checked","checked"); }); });   … Continue reading

Posted in General | Tagged , | Leave a comment

How to do AJAX in jQuery with JSON callback in Zend Framework

Here is how to do it in Zend Framework. Let’s start with the form: <textarea id="mytext"> </textarea> <input type="button" id="mybutton" value="go" />   < script language="Javascript"> //jQuery stuff $(document).ready(function() { $("#mybutton").click(function() { $.post("< ?=$this->baseUrl?>/path/to/my/coolaction",{ mytext: $(’#mytext’).val() }, function(data){ //alert("Data Loaded: … Continue reading

Posted in General | Tagged , , | 3 Comments

Zend_View Placeholders by Matthew Weier O`Phinney

In his blog post, he used something that I didn’t know or hear about — headLink() and headScript(). So I went ahead to add a comment and asked for an example. Then I got it — he has a new … Continue reading

Posted in General | Tagged , | Leave a comment

How to do a Select statement inside the main select statement in MySQL

A little bit slow but it gets the job done. I used this to generate a report to get the total open_amount for customers. SELECT s.parent_no, s.parent_name, t.parent_no, t.col_manager, t.invoice_date, t.due_date, t.over_7_date, t.over_7_by_eom, t.open_amount,   (SELECT SUM(t2.open_amount) FROM transactions t2 … Continue reading

Posted in General | Tagged | Leave a comment

Zend Framework 1.5 RELEASED!

To people who don’t use Zend Framework, seriously, this is the time for you to switch. I need not say more. Just head on the their newly-skinned site: http://framework.zend.com And they have something that every new-comer wants, a Zend Framework … Continue reading

Posted in General | Tagged | 5 Comments

Zend Framework: Slides – Builing Rich Internet Applications in 3 days

Here are the slides. Wil Sinclair has been a busy man of late. In addition to getting ready for the 1.5 release of Zend Framework and recording a podcast with me, he has taken the time to present 2 different … Continue reading

Posted in General | Tagged | Leave a comment

What Zend_Layout looks like. An overview. Code sample. No explanation :P

I wrote this for myself instead of for other people. The short code example is found on my wiki (http://wiki.ekini.net/main/Zend_Layout). Basically it is a very quick overview of Zend_Layout — more like a cheatsheet (again). The bootstrap, the directory structure … Continue reading

Posted in General | Tagged , , | 3 Comments

Acid3 results for common browsers

here are the results. Safari has done good. Firefox and Opera too…

Posted in General | Tagged | Leave a comment