Hi.. This is a tough one to explain but I will try my best...I have a view which display two tabs. When I load the view directly (i.e. by typing the url on the browser) the view loads properly. I can see all the tabs being rendered properly. But when I use ajax to update a div with the "view" content (I am using ajax->remotefunction), the tabs are not rendered correctly. Below are the relevant code pieces..
the javascript I am concerned with is tabber.js (http://www.barelyfitz.com/projects/tabber/tabber.js )...got the reference from cakephp irc ==== default.thtml ===== <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>untitled</title> <?php print $html->charset('UTF-8'); echo $javascript->link('prototype'); echo $javascript->link('scriptaculous'); echo $javascript->link('effects'); echo $javascript->link('controls'); echo $javascript->link('tabber/tabber'); echo $html->css('tabber','stylesheet', array('media'=>'screen')); echo $html->css('style','stylesheet',array('media'=>'screen')); ?> </head> ==== index.thtml ============= <!-- this runs in a loop to list all the names of the authors --> <div class="record" onMouseOver= "<?= $ajax->remoteFunction(array( 'update'=>'info', 'url'=>'/authors/view/' . $authors['id'], )); ?>"> <div><span class="title"><?=$authors['name']</span> </div> </div> <!-- end of loop --> <!-- this is the div thats get updated on mouseover --> <?php e($ajax->div("info")); ?> <?php e($ajax->divEnd("info")); ?> ===== authors controller and view function === function view($id) { $this->set('article', $this->Article->read(null, $id)); } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
