Yes Sorry clemos, was alittle tired on this afternoon. Here is the question completely rewritten :)
1. Download the latest stable release of CakePHP (1.1.19.6305) 1.1 Set it up and running. 2. Download the prototype.js library and copy it to your fresh cake installation "js" -folder. 3. Lets create the controller we need 3.1 create users_controller.php, source is here: http://bin.cakephp.org/view/228475902 3.2 create settings controller.php, source here: http://bin.cakephp.org/view/1561727948 4. Now we need some models too... 4.1 Let's create the user.php, source can be found here: http://bin.cakephp.org/view/1560512038 4.2 Next we need the setting.php, get the source here: http://bin.cakephp.org/view/325085541 5. We need three views as well... V for Views! 5.1 /users/index.thtml, source: http://bin.cakephp.org/view/227887042 5.2 /users/edit.thtml, source: http://bin.cakephp.org/view/1754502406 5.3 /settings/index.thtml, source: http://bin.cakephp.org/view/1797653162 view:settings/index 6. Let's modify the default layout a little (include the prototype library and what not) 6.1 download this layout and save it under /views/layouts/test.thtml (http://bin.cakephp.org/view/1757453857) 7. Now we are ready to begin testing... 7.1 browse to localhost/your/new/cake/installation/settings/ 7.2 try to type something to the text field and press submit... nothing happens. The browser doesen't send any XHR request. 7.3 click the link that says click me, this invokes an AJAX call (which works BTW) 7.4 Click the link on that window again. That load the same view, that we used in 7.1 and now the AJAX submit button works.. -Antti prototype.js --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
