Klaus, thanks I've looked at the tabs plugin, but id does way too much for
the little bit of show and hide I want to do.....though I think I've found
something that works
For now I found that: var hash = location.hash.replace('#', '');
showlist(hash); //function to show letter list
and hide the others
will do the trick if people come in from another page.
and:
$('#AtoZ li a').attr("href","#").click(function(){
showlist($(this).text());
});
Replaces the a href from the top bar fold-out with nothing (#) and just
calls the show function directly.
Thanks for the great script though, it serves as a very nice demo/learn tool
even if I don't need it right now.
Still wondering about the striped tables though...
Regards
Angelo
Klaus Hartl wrote:
>
> I think you could use my history plugin for that...:
>
> Your letter links would have to look like this and let's assume for now
> that they have the class "letter":
>
> #b B
>
> Then use the following (undocumented) plugin method:
>
> $('a.letter').history();
> $.ajaxHistory.initialize();
>
> And attach the proper click event handler to show the tables according
> to the link...
>
> You'd have bookmarking and back button support with that.
>
> Well, you could also just use my Tabs plugin for that.
>
>
> -- Klaus
>
--
View this message in context:
http://www.nabble.com/Question-on-location.hash-polling-and-stripped-tables-tf3162273.html#a8774251
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/