Try this instead:
$('.selector').accordion('activate',false);
It works for me in all browsers.
Nancy
On May 22, 9:07 am, Nick Cooley <[email protected]> wrote:
> Hey all --
>
> I'm trying to use the new 1.7.1 version of theaccordionand I'm
> having trouble using
>
> $('.selector').accordion('activate', -1);
>
> to close all elements of myaccordion... This works perfectly in FF,
> but it does not seem to work in IE... Instead of closing all elements,
> it opens the first element... Any suggestions?
>
> I designed a test script... Feel free to check it out...
>
> Thanks!
>
> <ul class="featured-perf clearfix" style="width:180px; border:1px
> solid #000;">
>
> <li class="performance-label">Featured</li>
>
> <li class="featured">
>
> <a target="_parent" href="#" title="Shop Performance">Shop
> Performance</a>
>
> <div class="featured">
>
> <ol class="dropdown2">
>
> <li>
>
> <a href="#" title="Shop Performance" >Accordion
> content</a>
>
> </li>
>
> </ol>
>
> </div>
>
> </li>
>
> <li class="featured">
>
> <a target="_parent" href="#" title="Shop
> Performance">Shop Performance</a>
>
> <div class="featured">
>
> <ol class="dropdown2">
>
> <li>
>
> <a href="#" title="Shop Performance" >Accordion
> content</a>
>
> </li>
>
> </ol>
>
> </div>
>
> </li>
>
> <li class="featured">
>
> <a target="_parent" href="#" title="Shop
> Performance">Shop Performance</a>
>
> <div class="featured">
>
> <ol class="dropdown2">
>
> <li>
>
> <a href="#" title="Shop Performance" >Accordion
> content</a>
>
> </li>
>
> </ol>
>
> </div>
>
> </li>
>
> </ul>
>
> <div id="accordionStatus" style="margin-top:100px;">
> Empty Status
> </div>
>
> <script language="JavaScript" type="text/javascript">
> if(window['console'] === undefined)
> window.console = { log: function(){} };
>
> $a(function(){
> var $ulFeatured = $a('ul.featured-perf');
> var imgHeight = $ulFeatured.find('img').attr
> ('height');
>
> $ulFeatured.accordion({
> header: 'a:not(.dropdown2 a)',
> collapsible:true,
> autoheight: true,
> animated: false,
> event: 'mouseover'
> }).mouseleave(function(){
> $a('#accordionStatus').append("<br/>current
> status: collapsible ==
> " + $ulFeatured.accordion('option', 'collapsible'))
> $ulFeatured.accordion('activate', -1);
> $a('#accordionStatus').append("<br/>current
> status: active == " +
> $ulFeatured.accordion('option', 'active'))
> })
>
> })
>
> </script>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" 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/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---