-
Pet Projects
Monthly Archives: March 2008
Everyone should read this.
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…
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
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
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
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
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
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
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
here are the results. Safari has done good. Firefox and Opera too…