Hello! I create some ajax link which must load data and then show slide some div with this content.
Here's my code: <?php $pid = $project['Project']['id']; echo $ajax->link('+', array('controller' => 'tasks', 'action' => 'add', $project ['Project']['id']), array ( 'complete' => ' Effect.SlideDown("project-task-$pid"); $("project-plus-$pid").hide(); $("project-minus-$pid").show(); return false; ', ) ); ?> But i have 2 problem. First, i must use Effect.SlideDown("project-task-$pid"); and when i try write Effect.SlideDown("project-task-$project['Project']['id']"); script give me error. So i use temp field $pid. But it's not good solution. Second problem, script doesn't work! But when i change $pid to some number it's work! I checked $pid and i saw that pid was validate number. So where is problem? --~--~---------~--~----~------------~-------~--~----~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---