I'm not quite sure how to get this working. I pasted the js into my 
applications.js so the script is in every footer and linked to 
the accordion page with location hashes. Do I somehow need to edit the 
script below?

On Sunday, 1 April 2012 09:40:51 UTC+1, Gerd Niemetz wrote:
>
> Hi!
>
> I did it with location hash. For example:
> On my index.html i have a link to programm.html set with "
> http://www.kuba-eferding.at/programm.html#event20120410";
>
> In the programm.html i check it like this
>
>     if (window.location.hash) {      var EventID = window.location.hash;      
> AccordionBodyID = $(EventID + ' .accordion-toggle').attr('href');      if (! 
> (typeof AccordionBodyID === "undefined")) {        
> $(AccordionBodyID).collapse('show');        return true;      }    }
>
> HTH
> regards,
> Gerd
>
> Am Samstag, 31. März 2012 14:42:55 UTC+2 schrieb [email protected]:
>>
>> Hi 
>>
>> How do I open an accordion panel by linking to an anchor within it 
>> from another page? The accordion is normally closed. 
>>
>> Stumped. 
>>
>> Dan
>
>

Reply via email to