-
Pet Projects
Tag Archives: jquery
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
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
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
jQuery is way ahead!!!
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
Another re-post from stackoverflow. $("#id_of_object_to_remove").click(function() { $(this).fadeOut(500, function() { $(this).remove(); }); });
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
Just a quick plug! http://www.reynoldsftw.com/2009/02/6-jquery-chart-plugins-reviewed/
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
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);