XHTML / JavaScript / CSS
Flexible HTML layout with footer positioned at bottom.
Posted in XHTML / JavaScript / CSS on August 18th, 2009 by Thomas – Be the first to commentThis html and css will produce a grid where the footer is positioned at the bottom of the viewport until page content extends the viewport. The footer will then follow after the content end.
read more »
Sexy single file upload widget gizmo thing-a-ma-jig
Posted in Serverside, XHTML / JavaScript / CSS on July 2nd, 2009 by Erland – Be the first to commentjQuery selector and its element order
Posted in XHTML / JavaScript / CSS on June 15th, 2009 by Thomas – Be the first to commentThis issue applies to jQuery 1.2.6. It might have been fixed in later versions.
I experienced this in a script where I made a selection of list-elements allocated in a variable that I wanted to work with. I used hide(), and show() and the selector :first and :last. When I hide and then showed an element it suddenly moved to the end of the list when it originally was at the beginning of the list. When I then used :first to point to the first element, I got the second because it had moved. To solve this I had to do the selection over again instead of using the variable holding the selection. So don’t use a variable to hold your selection when you want to use :first and :last. Do a new selection instead.
Goodbye sIFR? Hello typekit?
Posted in XHTML / JavaScript / CSS on June 3rd, 2009 by Erland – Be the first to comment(…)As a Typekit user, you’ll have access to our library of high-quality fonts. Just add a line of JavaScript to your markup, tell us what fonts you want to use, and then craft your pages the way you always have. Except now you’ll be able to use real fonts. This really is going to change web design(…)
http://blog.typekit.com/
Manipulating opacity during animation with jQuery and its effects in IE
Posted in Miscellaneous, XHTML / JavaScript / CSS on May 28th, 2009 by Thomas – Be the first to commentChanging opacity on an element dynamical with jQuery often gives strange and unwanted effects in IE. It depends on the sites structure and css. It normally appears after an element has been faded out, and is faded in again. Text colour disappears, backgrounds looks strange opacity is wrong. Several things can happen.
Why Does Clean Markup Matter in Web Design?
Posted in XHTML / JavaScript / CSS on May 6th, 2009 by Erland – Be the first to commentBecause the web is a changing and ever evolving organism, it’s important to build sites that can grow with it and easily ride the current instead of drowning when a new wave approaches.
Clean markup and building with web standards not only helps you do this, but will save you both time and money in the long run.
Google Analytics API in public beta
Posted in Serverside, XHTML / JavaScript / CSS on April 22nd, 2009 by Erland – Be the first to commentGoogle has just released the public beta of their API. Javascript and Java libraries are already available, and support for other languages are in development. This certainly opens up for tailor made statistics solutions for clients, project managers and consultants.
Embedding Flash without messing up the HTML fall back
Posted in XHTML / JavaScript / CSS on April 1st, 2009 by Erland – Be the first to commentSometimes we need to insert a 100% Flash into a page. This little snippet shows you how you can achieve it without breaking the normal browser behavior (scrollbars etc) for users viewing the retro HTML fall back.
Prerequisites: jQuery and swfobject 2.
How to send metadata in header when using jQuery
Posted in XHTML / JavaScript / CSS on April 1st, 2009 by Thomas – Be the first to commentSometimes when working with Ajax one needs to send some metadata in addition to the normal response.
This is usually the case when the response is HTML or text and is quite common in other libraries, like prototype.
The problem in jQuery is that one can only access the response and status in the callback function “success”.
This is easily altered, but it must be done in the library itself.
