Re: Problems w/ Graham Bird's Task List Tutorial
I had the Same Problem, you must replace: new Ajax.Updater(\'tasks_done\',\'/tasks/done/' . with new Ajax.Updater(\'tasks_done\',\'/CAKE/tasks/done/' . This should be the correct path for your Install. Test it! Greetz najjannaj --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Problems w/ Graham Bird's Task List Tutorial
FYI: Graham's been notified of this URL trouble. My fix for the conundrum was to wrap /tasks/done/ in Cake's $html-url() method, to get a full URL to it. I emailed him this, he answered he'd include that solution, and that fix will probably be in the tutorial forthwith. Hope you have fun with AJAX. Olle --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Problems w/ Graham Bird's Task List Tutorial
Thanks, najjanna -- that worked just fine. I tried emailing Graham directly, but did not get an answer. Most things are working ok, accept for on a Refresh, if you click on Job Undone (uncheck one of the completed jobs below) it gives an error message Not Found The requested URL /tasks_done/71 was not found on this server. Also, the input box is not clearing when you enter a new job. Any suggestions. http://jobboard.bernardtransportation.com/CAKE/tasks Thank you everyone for all your suggestions and help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Problems w/ Graham Bird's Task List Tutorial
I am having problems trying to place the correct URL that Graham states in his tutorial for the AJAX task list for done.thml: If Cake is installed in a subfolder (ie not your server's web root) then you will need to use $html-url(/tasks/undo/ . $item[id] ); in the second Ajax.Updater argument. This means the URL is generated by Cake rather than being hard-coded. I am too inexperienced to fully understand what the correct URL would be and where I would place my URL in this code with the correct characters : div id=todo_view p class=file-timeRendered: ?=gmdate('H:i:s', time())? GMT/p p class=file-nameView: /app/views/tasks/todo.thtml/p ?php foreach ($data as $row) { $item = $row['Task']; if ($item['done'] == 0) { print 'div class=task id=todo_' . $item['id'] . ' title=' . $item['id'] . ''; print 'input id=todo_check' . $item['id'] . ' type=checkbox onClick=new Ajax.Updater(\'tasks_done\',\'/tasks/done/' . $item['id']. '\', {asynchronous:true, evalScripts:true});new Effect.Fade(\'todo_' . $item['id'] . '\'); / '; print 'label for=todo_check_' . $item['id'] . '' . $item['title'] . '/label'; print '/div' . \n; } } ? /div And, if I have CAKE installed here: http://jobboard.bernardtransportation.com/CAKE/tasks What URL would I use so that done.thtml can be found by todo.thtml? Please help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---