This is a simple method of showing and hiding form elements based on the user’s selection. It’s based on this article with a couple of very minor changes. (Dare I say, improvements?) I’m going to assume you’ve already included the JQuery library so I won’t cover that here. I want to go straight to the code. (View the example page here.) (more…)
Author Archive
CakePHP: Containable Behavior is Your Friend
When it comes to optimizing your CakePHP queries, you need to abandon Recursive and adopt Containable.
In the example below I have the following models:
- Patient
- Specimen
- Result
- ResultType
The associations in the model are:
- Result
- belongsTo
- ResultType
- hasMany
- Result
- hasMany
- Patient
- hasMany
- Result
- Specimen
- hasMany
- Specimen
- belongsTo
- Patient
- hasMany
- Result
- belongsTo
- ResultType
- belongsTo
Baseline Theme Version 1.0.1
There is a new version of the Baseline Theme. In the last few days of tinkering with it and modifying it for use with this website, I noticed a small bug. The Blueprint IE reset was acting funny in conjunction with the IE8 JavaScript. I chose to make IE8.js the default with the option of including Blueprint’s reset instead. (more…)
Blueprint Optional Fancy-Type Plugin
The Baseline Development WordPress Theme has Blueprint plugged in already. There are some optional Blueprint plugins you can take advantage of. We’ll take a look at the fancy-type plug-in. (more…)
Why Use Blueprint and the 960 Grid System in the Baseline Theme?
An Inventory of Blueprint’s Style Resets and Useful Classes
A friend contacted me about using the Baseline WordPress theme, but asked why I included both Blueprint and the 960 Grid System. The short answer is that Blueprint has a number of browser resets that I like to take advantage of and 960 GS offers greater flexibility in terms of the width of columns and their gutter widths. Especially if you want to adhere to the Golden Ratio for design. 960 pixels divides very neatly into 3.
Let’s take a look at what Blueprint does to reset some things to establish a cross-browser baseline. (more…)
Introducing the Baseline Development WordPress Theme
I’ve come up with some habits that I’ve developed from building themes for WordPress over the years. One, is to start with a nearly blank style sheet. I also like to hook in several JavaScript libraries and CSS frameworks from the start to take advantage of things like JQuery, Blueprint’s CSS reset and Superfish menus. (more…)
Using Mind Mapping Software to Develop Data Models
I’ve been using mind mapping software recently to work out data models, with some success. The Mindmeister example below is a simple database of a few related tables. (more…)
Blueprint: Taking a Close Look at grid.css
About Blueprint
Blueprint is a CSS framework, which aims to cut down on your development time. It gives you a solid foundation to build your project on top of, with an easy-to-use grid, sensible typography, useful plugins, and even a stylesheet for printing.
.container
/* A container should group all your columns. */
.container {
width: 950px;
margin: 0 auto;
}
Michael Shermer’s TED Talk: Why People Believe Weird Things
Posted via email from Truetone
Change Into…
Posted via email from Truetone