I have this:

<? echo $ajax->link('Choose','/accountmanagers/choose_company/' .
$item['id'],
        array('update'=>'display_card',
                'after' => 'myAccordion.showThisHideOpen(stretchers[1]);',
                'complete' => 'new Effect.Highlight(\'display_card\');'));
                ?>

it comes up saying myAccordion is not defined, but it is, as when the
page loads I have a <script> tag with

..
//accordion effect
var myAccordion = new fx.Accordion(
toggles, stretchers, {opacity: true, duration: 100}
);

myAccordion.showThisHideOpen(stretchers[0]);
..

in it.  or should I have to specify ANOTHER new object for the
accordion?  Basically when someone clicks on the link I want the
stretcher i am in to close and the new one to open where some
information is loaded.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to