11 Mar 2009 @ 4:40 PM 
Today’s article is going to walk you through creating a slick drag and drop with AJAX category management system.

CakePHP offers a really nice built-in tree management.  In fact, at a bare minimum you simply need to create a table with 2 extra columns, tell your model to act like a “tree” and rather than doing a find(‘all’) you do a generatetreelist() or a find(‘threaded’) and CakePHP takes care of the rest.

After doing a quick test, I was quite impressed with what CakePHP did for me, but I was not satisified.  I wanted to create a really slick category management system that I can re-use and show off.  Well, in this tutorial I go about 90% of the way.  The only thing I didn’t have time to finish was, rather than redrawing my tree through AJAX, use DHTML and dynamically update my tree after dragging and dropping.  Don’t worry, I plan to finish this with a part two soon. More »

  • Share/Bookmark
Posted By: Jamie
Last Edit: 11 Mar 2009 @ 04:40 PM

EmailPermalinkComments (16)
Tags
 09 Mar 2009 @ 5:20 PM 

In today’s article we are going to create a very basic blog that allows people to create a post and posts comments on that post via AJAX.  We are going to keep it extremely basic and just focus on that actual AJAX functionality.

Ready? Let’s begin.  We are going to start by creating two database tables: posts and posts_comments.  Below is a sample create statement for the posts table: More »

  • Share/Bookmark
Posted By: Jamie
Last Edit: 09 Mar 2009 @ 05:23 PM

EmailPermalinkComments (10)
Tags
Tags: , ,
Categories: AJAX, CakePHP, php
 06 Mar 2009 @ 12:00 PM 

When I created my first personal CakePHP web site, this was something that had me quite frustrated.  I struggled and struggled to figure out and understand how to do a simple “if I change this select box, how can I populate another one”.

I had previously done this a million times in other languages with a simple “onchange()” function that would do my AJAX and populate my other select box.

To solve this problem, I checked CakePHP’s web site and did not find anything useful.  Don’t forget this was almost a year ago, I find the web site has come a long way now.  Because I couldn’t find a could example, I did the next best thing, I dove write into the form helper and ajax helper.  Shortly after, I found enough information to start my trial and error process.

Excellent, now we are getting some where.  Now that we know this, let’s create our two select boxes and make our second one populate through AJAX. More »

  • Share/Bookmark
Posted By: Jamie
Last Edit: 06 Mar 2009 @ 07:38 AM

EmailPermalinkComments (12)
Tags
Tags: , ,
Categories: AJAX, CakePHP
 14 Feb 2009 @ 11:19 AM 

At my work it’s quite clear to me that a lot of people have difficulty with both AJAX and drag and drop functionality.  In this article, I thought I would provide a realistic and simplistic example of how to accomplish both AJAX and drag and drop together.

By the end of this article you will be able to create an extremely slick content management system that works really smoothly. More »

  • Share/Bookmark
Posted By: Jamie
Last Edit: 03 Apr 2009 @ 03:26 PM

EmailPermalinkComments (1)
Tags
 11 Feb 2009 @ 2:44 PM 

I think a good place to start is to describe one of my favorite tools.  It’s called Firebug, it’s an add-on for Mozilla browsers.

At work, if one of my co-workers comes to me in the J-Block and asks a Javascript or CSS question, before I even consider helping them I ask if they reviewed the styles or the Javascript in Firebug.  9 times out 10 if it’s a really easy answer, you’ll see it almost immediately with the help of Firebug. More »

  • Share/Bookmark
Posted By: Jamie
Last Edit: 15 Feb 2009 @ 07:22 AM

EmailPermalinkComments (1)
Tags
Tags: , , , ,
Categories: AJAX, CSS, Javascript

 Last 50 Posts
 Back
Change Theme...
  • Users » 8
  • Posts/Pages » 72
  • Comments » 195
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight