-
Recent Posts
Tags
app engines attributes cgi database DBI Debian frameworks full screen terminal GWT hacks hardware hobbit howto html inheritance javascript jQuery libraries Linux mac oracle OSX parallels Perl photoshop pixels PostgreSQL programming qa regression testing screen size Software Development style template toolkit term Theory translation type cast User Interface virtual machine virtual machines visual studio vmware web design web programming
Tag Archives: javascript
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 Also tagged User Interface, web design, web programming 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 [...]
Chaining JQuery Show/Hide Using Callbacks
$ = jQuery.noConflict(); var speed = 500; $(function() { $("#hide").hide(); $(".blueBox").hide(); $("#show").click(function() { $(this).hide(); $("#1").show(speed, function() { $("#2").show(speed, function() { $("#3").show(speed, function() { $("#4").show(speed, function() { $("#5").show(speed,function() { $("#6").show(speed, function() { $("#hide").show(); }) }) }) }) }) }) }); $("#hide").click(function() { $(this).hide(); $("#6").hide(speed, function() { $("#5").hide(speed, function() { $("#4").hide(speed, function() { $("#3").hide(speed, function() { $("#2").hide(speed,function() [...]
Posted in Uncategorized Also tagged jQuery, programming, User Interface, web programming Leave a comment
Arbitrary HTML attributes and JavaScript
This is a technique that is pretty obvious, but nonetheless useful and worth documenting: To put it succinctly, it is possible to add custom attrbutes to HTML elements, and query them out with JavaScript DOM operations. So you might build elements with mouseover help text like this: <a id=”years” href=”#” helpText=”Please enter your motorcycle riding [...]
Event Bubbling In JavaScript / JQuery