Posted by Jamie Munro | September 12, 2011 | Tags: html5
If you haven’t done so already, it’s time to start thinking about upgrading your existing website or creating a new website with HTML5. HTML5 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.
Posted by Jamie Munro | September 8, 2011 | Tags: jquery
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.
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.
Posted by Jamie Munro | September 1, 2011 | Tags: jquery
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.
Posted by Jamie Munro | August 29, 2011 | Tags: css3
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.
Posted by Jamie Munro | August 25, 2011 | Tags: cakephp
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.
Posted by Jamie Munro | August 23, 2011 | Tags: mvc3
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.
Posted by Jamie Munro | August 21, 2011 | Tags: cakephp
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.