Posted by ethan benj
on 30.07.2006 19:59
Is there a way to use a link somewhere else on the page to activate the 
accordion panels?

Thanks in advance,
Ethan
Posted by Andrew Andrew
on 01.08.2006 14:58
make the accordion in a javascript function, then link that function. So
it would be a onClick="yourfunction();" . make sure the new
Rico.Accordion() code is in the main page some where. or even
better, put it in the function.
Posted by ethan benj
on 01.08.2006 23:12
I know I'm an idiot at this but totaly psyched to learn...
Is there an example you can give me of what you said to do?
Thanks Andrew,
Ethan
Posted by Andrew Andrew
on 02.08.2006 19:43
um sure let me write a quick something:

<script>
function show1(){

'<div id="accordionDiv">'+
   '<div id="overviewPanel">'+
     '<div id="overviewHeader">'+
       'Overview'+
      '</div>'+
      '<div id="panel1Content">'+
       '... content text ...'+
      '</div>'+
   '</div>'+
'</div>'

new Rico.Accordion( $('accordionDiv'), {panelHeight:300} );
}
</script>

<body>
<p>Hey whats up</p>

<a href="#" onClick="show1();">Click here for accordion</a>



Thats right off my head, but that is something that should work.
if the above method doesnt work. I am sorry.
Posted by ethan benj
on 03.08.2006 00:17
Thanks so much. I'm way too amateur to fully understand the code but 
think the accordion is totally great. Thanks for the help...I did try 
looking in the forums before bothering you -)
Thanks again,
Ethan
Posted by Andrew Andrew
on 03.08.2006 14:15
no bother questions like these make me better.  If you need any more 
help please email me at: aewhalle@coastal.edu, just name it rico help.
Wally
Posted by ethan benj
on 04.08.2006 23:10
Way cool. Thanks mucho,
ethan
Posted by isak ellis
on 11.06.2007 21:57
I have a two-column page. The left column has summary results from a 
search. I would like to have a link from each line of the results that 
will add detailed info in an accordian panel located in the right 
column. I tried the above code and got nothing to work. Can this be 
done?