Ok, download CakePHP 1.2 and create a basic website with some scaffolding or something. Include Prototype or jQuery and think about a part of your page you want to replace with the result of an Ajax request.
Suppose you have a scaffolded list of customers. When you press the View link, Cake redirects you to customers/view/123. You can catch the link and call some Javascript to load the result of customers/view/123 in a div on your index page. Quite easy, but you now see your header twice. Not cool. Hmmm....
Posts tonen met het label ajax. Alle posts tonen
Posts tonen met het label ajax. Alle posts tonen
dinsdag 19 februari 2008
vrijdag 8 februari 2008
jQuery worth trying
This is a very short post, but I wanted to tell you about jQuery. I tried it earlier this week in a new CakePHP 1.2 project. Just included jquery.js in my layout and used the code below to have a toggle effect. With Mootools I always needed much more code to achieve this effect.
Try this example.
Let me know what you think of this!
Try this example.
Let me know what you think of this!
vrijdag 4 januari 2008
Nice article on using scriptacolous
Jan Boonen wrote a nice article on using Scriptacolous effects in CakePHP 1.2:
CakePHP's AJAX helper offers you direct access to the Sciptaculous library. If you have little AJAX experience, the usage of this helper might seem overwhelming. It is not, the largest part of the job is creating good views.
Check it out!
CakePHP's AJAX helper offers you direct access to the Sciptaculous library. If you have little AJAX experience, the usage of this helper might seem overwhelming. It is not, the largest part of the job is creating good views.
Check it out!
Labels:
ajax,
CakePHP,
effects,
scriptacolous
maandag 1 oktober 2007
Basic Task list with Ajax
Graham Bird has written a very nice tutorial on creating a Basic Task list with Ajax. Have a look at it here (http://grahambird.co.uk/cake/tutorials/ajax.php).
Abonneren op:
Posts (Atom)