Hello,

I have several big files (about 8) and each of them has Subheadlines
marked with anchors.
ON another file I have a table of contents including all subheadlines
as links, and I would like, when clicking on one of the links to open
it in a DIV below the table of contents, the whole HTML refered but
scrolled down exaclty to the selected Subheadline.

If possible, would be great if that headline to be also highlighted
temporary until something else is selected.

I am using this code:

$('.explinks a').click(function(){
$.get($(this).attr('href'),function(x){$('#continut').html(x);});
$('.colapsabil').each(function(i){$('tr:gt(0)',$(this)).hide();});
return false;
});

1. explinks is the class I apply to the td which includes the links I
need to work this way, as some TD will contain files do download so it
should not open like this.

2. continut is the ID of the DIV I need to load my content to.

The issue is that somehow the anchor details are ignored and the html
files are loaded always at the top not scrolled down to the specified
anchor..

<a href="details/filename.html#121">


Can you please advise?

Thank you
Anca

Reply via email to