Trilobita Wordpress Theme
by trilobita
We’ve created our own Wordpress theme, it’s the one we use for this blog. It is a three column flexible layout based on the Jello layout model. This means that you get a fluid layout, but one that has a minimum and maximum width set. Yep your site will not go below a certain width or expand beyond your max width. Try it, the default setting is that this layout will not go below 700px or above 1000px. These values can be edited to suit your needs, as can the amount of fluidity.
It also uses JQuery for corners and the lavalamp menu.
It is XHTML 1.0 Strict and CSS compliant.

Our Theme
Grab the relevant file below:-
Tags: css, JQuery, theme, wordpress, xhtml
Posted in Development, JQuery, themes, xhtml | 2 Comments »
Really Easy Field Validation with JQuery
by trilobita
Again JQuery has improved and simplified from the process outlined earlier in this blog
for form validation just add jquery.validate plugin and then in the code add:-
$("#commentForm").validate();
or more likely you’ll have a more complex form so you’ll need to specify a few attributes
var validator = $("#health").validate({
rules: {
radiofield: "required",
textfield: "required",
email: {required: true,email: true},
name: "required"
},
messages: {
email: {
required: "Please enter a valid email address",
minlength: "Please enter a valid email address",
},
radiofield: "Please Select The number of items to Check"
},
// the errorPlacement has to take the table layout into account
errorPlacement: function(error, element) {
if ( element.is(":radio") )
error.appendTo( element.parent() );
else if ( element.is(":checkbox") )
error.appendTo ( element.next() );
else
error.appendTo( element.parent() );
},
})
For the full documentation go to http://docs.jquery.com/Plugins/Validation
And don’t forget to handle the form with javascript disabled!
Tags: field validation, form, form checking, javascript, JQuery, validation
Posted in Development, JQuery, ajax, css, javascript, php, themes | No Comments »
Rounded Corners with JQuery
by trilobita
As with most things Jquery has simplified and improved the process.
For rounded corners just use the jquery plugin jquery.corner.js
and in your code:-
$('#id1, #id2 ul ').corner();
and that’s it!
Tags: corners, css, javascript, JQuery, rounded
Posted in Development, JQuery, css, javascript | No Comments »
Great JQuery add ons
by trilobita
Tags: JQuery
Posted in Development, JQuery, javascript | No Comments »