Webistrate - Draw Your Own Conclusions

HTML5: Creating an HTML5 Website and degrading for older browsers

Posted by Jamie Munro | September 12, 2011 | Tags:

If you haven’t done so already, it’s time to start thinking about upgrading your existing website or creating a new website with HTML5HTML5 contains a lot of new features and new tags that help simplify the HTML required to create nice website designs.

Currently all of the major browsers and their latest versions all support the core new tags (header, footer, section, etc…).  However, the older browsers Internet Explorer 7 and 8 for example, do not support these.  In this article, I will show you how to create a new site with HTML5 while ensuring that it still looks good in older browsers.  It won’t be perfect, but it will be pretty darn close to it.

See the solution »

Share


jQuery: Transitioning AJAX Content into view with $.animate()

Posted by Jamie Munro | September 8, 2011 | Tags:

As a user of the Internet, I enjoy slick looking features that help make my experience look cool and seem fast or seamless.  A nice trick to include this type of functionality is to perform a transition of new content using jQuery’s $.animate() function.

See the solution »

Share


MSSQL/MySQL: Improving ORDER BY RAND and ORDER BY NEWID

Posted by Jamie Munro | September 5, 2011 | Tags: ,

Whenever you need to display “random” data, it is always so tempting to take the simplest solution, e.g. SELECT * FROM mytable ORDER BY RAND().  This of course works perfectly; however, if your database table contains a lot of records (10,000+) a query like this can take seconds to complete – instead of 1/10th of a second.  With a bit of extra effort and careful thought, this process can be improved and still provide truly random results.

See the solution »

Share


jQuery: Creating templates for your HTML Content

Posted by Jamie Munro | September 1, 2011 | Tags:

When you have a lot of AJAX calls on your website, especially ones that return a list of data, it can be quite expensive processing time on the server to retrieve the results, format them with HTML, and return them to the browser to display – not only that, your bandwidth costs can be quite high as well.  With jQuery templates, you can alter your AJAX calls to return JSON, and then populate the content client-side providing faster response times and less server processing as well.

See the solution »

Share


CSS3: Custom Fonts using @font-face

Posted by Jamie Munro | August 29, 2011 | Tags:

Let me start by saying that I am not a designer, so this feature didn’t mean much to me; however, when we told designers that they can start using custom fonts – they want ape @$!# for it.

See the solution »

Share


CakePHP: Login System using the Authentication Component

Posted by Jamie Munro | August 25, 2011 | Tags:

When you need to ensure that a user is both registered and logged in to view a specific action in your controller, CakePHP provides an Authentication component to help manage the process.

See the solution »

Share


MVC3: Login System with the AuthorizeAttribute

Posted by Jamie Munro | August 23, 2011 | Tags:

If you are creating your first website with MVC3 and it requires users to register and login, the AuthorizeAttribute and a built-in Internet Application template will get you started.

See the solution »

Share


CakePHP: Scaffolding a new database table

Posted by Jamie Munro | August 21, 2011 | Tags:

With each new table you create in your database, you will typically need to create a model, controller, and one or more views to get started.  CakePHP contains two solutions to get you started creating these files with minimal effort.

See the solution »

Share


Page 4 of 41234

Buy one of my books