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.

Tag Archives: jquery

Django and jQuery AJAX

This is probably my first post for Django. I have only been using it for a few weeks and I am already falling in love with it. Here is how to do an AJAX “save” using jQuery and Django. My … Continue reading

Posted in General | Tagged , , , | Leave a comment

jQuery Tips

Got this from Reddit. Load the framework from Google Code Use data method and avoid storing data inside the DOM. Some developers have a habit of storing data in the HTML attributes Use Cheat Sheets Compress Javascript files Use Firebug … Continue reading

Posted in General | Tagged , | 1 Comment

jQuery: Setting defaults for Checkboxes, Radio Buttons, Options in Selectboxes

I thought I should post this here. I always tend to look back at my old code wondering how I did these things. Handling radio buttons or checkboxes <input type="radio" name="print_memo" value="Yes"/> Yes <input type="radio" name="print_memo" value="No" /> No <script … Continue reading

Posted in General | Tagged , , , , , , | 3 Comments

Jquery’s Popularity

 jQuery is way ahead!!!

Posted in General | Tagged | 1 Comment

Simple Tooltip for jQuery (w/ image preview!)

This is the simplest jQuery Tooltip plugin I could find. It is literally plug-and-play. Very simple. Just click on the links found below to view the different examples. A simple tooltip A simple image preview Tooltip + Image Note that … Continue reading

Posted in General | Tagged , , | Leave a comment

jQuery: remove and object after fading out

Another re-post from stackoverflow. $("#id_of_object_to_remove").click(function() { $(this).fadeOut(500, function() { $(this).remove(); }); });

Posted in General | Tagged , | Leave a comment

jQuery: children() VS. find() – which is faster?

This is from stackoverflow and I am re-posting it here on my blog for record purposes. There is so much useful information there that in the days to come I will probably doing a bunch of re-posts from stackoverflow.com //For … Continue reading

Posted in General | Tagged , | 1 Comment

jQuery Charts!

Just a quick plug! http://www.reynoldsftw.com/2009/02/6-jquery-chart-plugins-reviewed/

Posted in General | Tagged , | 2 Comments

jQuery: Getting the latest text/value inside a textarea

Now, I was not expecting this. You can get the text inside the textarea using something like: alert($(’#id_of_textarea’).text()); That works, but if you bind it with an event, let’s say onkeyup — you will never get the “latest” text inside … Continue reading

Posted in General | Tagged , , | 9 Comments

jQuery: Find position the exact position of an element in the browser window

I used this to display a dynamically created Div beside the clicked element. var pos = $(’#button_id’).position(); alert("POSITION: nLeft: "+pos.left + "nTop: " + pos.top);

Posted in General | Tagged , | 5 Comments