Category Archives: Software Development

Web Application programming, databases, CGI’s, mod_perl, Apache, AJAX, JavaScript, HTML, CSS.

Event Bubbling In JavaScript / JQuery

Lynda.com has a great series of tutorials on JavaScript, here. One of the exercises was an event bubbling demo, written in JavaScript. It illustrates how events on a DOM element, bubble-up to the parent elements. I have re-written it below in JQuery. Click in ‘div 3′ to see the event propogate. You may need to [...]
Posted in Software Development | Tagged , , , | Leave a comment

How To Use jqzoom

You may need to put IE 8 into compatibility mode to see this graphic. (You might have to put IE8 into compatibility mode to see the graphic above. I'm working on this...) Here's the code: <html> <head> <link rel="stylesheet" type="text/css" href="jqzoom.css" /> <script type="text/javascript" src="jquery-1.3.2.min.js"></script> <script type="text/javascript" src="jquery.jqzoom1.0.1.js"></script> <script type="text/javascript"> $(document).ready(function() { var options = [...]
Also posted in Art And Design | Leave a comment

Color Drag/Drop Toy

What you do is to drag one of the small color chips onto the larger square. I’m trying to figure out where I can use drag and drop in an actual interface. It seems like a pretty critical component of desktop like web applications. The effect is done with JQuery-UI. Unfortunately this approach doesn’t work [...]
Posted in Software Development | Leave a comment

Circles…

This is just a crazy layout that I built based on this site. It uses a lot of relatively positioned elements for a sort of compositing effect. (None of the links are meant to work — it’s just a layout demo. ) Pure JavaScript/HTML/CSS, no Flash.
Posted in Software Development | Tagged , , , | Leave a comment

dont fetch the count in loops repeatedly!

This should have been really obvious, but I haven’t really thought about what happens when you do for(var i =0; i < total(); i++) with respect to the function total(), which gets called over and over again. If that function has to search through a large document, and total is large, then this could be [...]
Posted in Software Development | Tagged , | Leave a comment