This is one of the most amazing jquery functions I’ve seen in a while. It loads your HTML or content that is dynamic without reloading the unchanged bits, making page loads lightning fast. ON that, does anyone know the speed of lightning (and no, Cars 2 is not what I’m asking)? You’ll need jquery included [...]
The new hotness of 3.1 beta 1 is the concept of Asset Template Engines (ATE if you condense that) which basically allows you to not have to deal with piles-o-files with javascript, css, images, etc. You can still have tons of them, but now you don’t have to figure out how to include them all. [...]
photo credit: Vagabond Shutterbug If there are things you want to appear on every page of your website, built in CakePHP, you will want to use a layout. I generally use one layout for header, footer, search, and other static elements. You can use multiples, but most of the time you won’t need more than [...]
You need to start with document ready of course, and include your jQuery script in your page as shown below, then adding a delete confirmation to any button is as easy as this: <script type="text/javascript" src="jQuery/jQuery-1.4.2.js"></script> $(document).ready(function(){ // here’s the magic: $(‘.delete’).click(function(){ // this will display a confirm (ok/cancel) pop-up box var result = [...]