Hi, I just started using the CakePHP. first let me explain what i am trying. i have 3 divs tasks, description and logs. whenever a link clicked from the tasks box its description and logs gets displayed in the respected divs using ajax.
How i am doing: 1. showing all the records fetched from the database row wise in a html table. 2. 1st column (id), 2nd column (title), 3rd column (description)...... last column is (action:delete) 3. here 2nd column title is linked (using the ajax-link), and on click its displays the description in ajax div's description and logs as i have mentioned the update=> array('description','logs') so far it works fine. Problem: When i try to delete for the first time it deletes the selected task and refreshes all the 3 div's as i want not to show the deleted item. i am using the ..... ..... $this->set('tasks', $this->Task->find('all')); $this->set('description', $descriptionArray); $this->set('logs', $logsArray); $this->render('index'); But after render second time i am not able to delete or not able to click on the title. (its not working) when i saw the javascript error it showing Error: element is null Source File: http://localhost/caketask/app/webroot/js/prototype.js Line: 3847 I reaallly dont know why i am getting this. Please try to help me. and also explain me what can be done to fix this issue. I tried to see the same error and come across the $ajax->observeField. what is this and how it can be useful Regards, Sanjeev --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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?hl=en -~----------~----~----~----~------~----~------~--~---