Thanks very much

That has fixed that bug, silly mistake to make!!

The navigation still does not work however :-(  i.e. if I go to
http://www.paulbraham.com/test_site/index.html#2 it should open on the
second panel and if I go to http://www.paulbraham.com/test_site/index.html#3
it should open on the third.

Any ideas what I have done wrong here?

Paul



On Nov 6, 1:42 am, "jquery.redsqu...@googlemail.com"
<jquery.redsqu...@googlemail.com> wrote:
> Your click function fail is due to the fact you hook the event up
> outside of a doc ready block. You can either change it to use .live or
> move it after the accordion initialise call.
>
> On Nov 5, 2:48 pm, mehstg1319 <meh...@gmail.com> wrote:
>
> > Hi guys
>
> > I am working on the following sitehttp://www.paulbraham.com/test_site/
> > and am having a few troubles with my JQuery Accordion.
>
> > Basically, I have turned on Navigation, and inserted three anchors,
> > #1, #2 and #3 for the three sections that exist. Now in theory, i
> > could go to index.html#2 and it would load with section 2 open. This
> > is not happening, and I cannot work out what is wrong with my code.
>
> > Also, I have used the following code to update the hash on the address
> > bar when a section is selected. This is so it is possible to bookmark
> > the website with a certain section open. This is also not working.
>
> > $(".menuLink").click(function(event){
> >                   window.location.hash=this.hash;
> >          });
>
> > If it helps, I found this tutorial, that shows it working perfectly, I
> > just can't work out what is so different about mine!!
>
> >http://www.michaeljacobdavis.com/tutorials/statesavingaccordion/state...
>
> > Thanks in advance
>
> > Paul

Reply via email to