What do you mean by "breaks"? Is there a specific error? Can you put and example on http://jsbin ?
This seems to work in both IE and FF: http://jsbin.com/eniza/edit Also, if you must do the browser check you could just do it within the option like this: active: $.browser.msie ? false : -1 Lastly, I think autoheight should be autoHeight (upper H). Dave On May 5, 12:17 pm, seezee <[email protected]> wrote: > i do have collapsible=true. i did just discover that active:-1 doesn't > work for internet explorer, but active:false does, so i had to set a > conditional statement to load the correct script for the various > browsers. > > here's the code: > > <script type="text/javascript"> > jQuery(function(){ > // deleted superfish code for this example > if($.browser.msie){ > jQuery(".accordion").accordion({ > header:'h3', > active:false, > collapsible:true, > autoheight:false, > clearStyle:true > }); > jQuery(".accordion_inner").accordion({ > header:'h5', > active:false, > collapsible:true, > autoheight:false, > clearStyle:true > });} > > else > { > jQuery(".accordion").accordion({ > header:'h3', > active:-1, > collapsible:true, > autoheight:false, > clearStyle:true > }); > jQuery(".accordion_inner").accordion({ > header:'h5', > active:-1, > collapsible:true, > autoheight:false, > clearStyle:true > });} > > }); > </script> > > --cz > > On May 5, 10:42 am, Fontzter <[email protected]> wrote: > > > The documentation says: > > "Selector for the active element. Set to false to display none at > > start. Needs «collapsible: true»." > > > Did you have collapsible: true? It shouldn't break though, but rather > > be ignored I would think. > > > I think the documentation is okay. > > > Dave > > > On May 5, 11:27 am, seezee <[email protected]> wrote: > > > > after much wrangling to get an accordion working, i found what appears > > > to be an error in the documentation. in the options section, under > > > "active", it says set to "false" to select none. this breaks the > > > accordion in my tests. but setting it to "-1" seems to work. rather > > > than submit a correction, i wanted to confirm this with the other > > > users & developers 1st. > > > > see my example here: > > > >http://www.messengerwebdesign.com/dishingitup/?page=nutrition > > > > thanks, > > > > --cz --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
